private List<FileInfo> getIndexSegmentFilesForLogSegment(String dataDir, LogSegmentName logSegmentName) {
    List<FileInfo> indexFileInfos = Arrays.stream(PersistentIndex.getIndexSegmentFilesForLogSegment(dataDir, logSegmentName))
        .map(file -> new StoreFileInfo(file.getName(), file.length()))
        .collect(Collectors.toList());
    Collections.sort(indexFileInfos, PersistentIndex.INDEX_SEGMENT_FILE_INFO_COMPARATOR);

    return indexFileInfos;
  }
Get all index segments for a log segment.
The list of files returned are sorted by their start offsets using {@link #INDEX_SEGMENT_FILE_INFO_COMPARATOR}
ambry-store/src/main/java/com/github/ambry/store/BlobStore.java