private static void dumpIndex(DumpIndexTool dumpIndexTool, File replicaDir, Set<StoreKey> filterSet)
      throws IOException, StoreException {
    verifyPath(replicaDir, true);
    logger.info("Dumping indexes from {}", replicaDir);
    File[] segmentFiles = getSegmentFilesFromDir(replicaDir);
    for (File segmentFile : segmentFiles) {
      dumpIndexSegment(dumpIndexTool, segmentFile, filterSet);
    }
  }
Constructs the configs associated with the tool.
@param verifiableProperties the props to use to load the config.
ambry-tools/src/main/java/com/github/ambry/store/DumpIndexTool.java