private static void dumpIndexSegment(DumpIndexTool dumpIndexTool, File segmentFile, Set<StoreKey> filterSet)
      throws IOException, StoreException {
    verifyPath(segmentFile, false);
    List<IndexEntry> entries = dumpIndexTool.getAllEntriesFromIndexSegment(segmentFile);
    logger.info("Dumping {}", segmentFile);
    for (IndexEntry entry : entries) {
      if (filterSet == null || filterSet.isEmpty() || filterSet.contains(entry.getKey())) {
        logger.info("Key: {}, Value: {}", entry.getKey(), entry.getValue());
      }
    }
  }
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