HDFS-12911 modularization is introducing FileIDCollector interface for scanning the files. That will help us to plugin different ways of scanning mechanisms if needed.
For Internal SPS, we have INode based scanning. For external SPS, we should go via client API scanning as we can not access NN internal structures.
This is the task to implement the scanning plugin for external SPS.