Skip to content

Commit

Permalink
refactor: remove unused code in ConsistentBucketIndexUtils
Browse files Browse the repository at this point in the history
1. remove unused code in ConsistentBucketIndexUtils

Signed-off-by: TheR1sing3un <[email protected]>
  • Loading branch information
TheR1sing3un committed Nov 27, 2024
1 parent da34c08 commit efde0e3
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ public static Option<HoodieConsistentHashingMetadata> loadMetadata(HoodieTable t
}
versionedHashMetadataFiles.computeIfPresent(instantTime, (k, v) -> Pair.of(v.getLeft(), true));
});
final TreeSet<String> commitMetaTss = metaFiles.stream().filter(hashingMetaCommitFilePredicate)
.map(commitFile -> HoodieConsistentHashingMetadata.getTimestampFromFile(commitFile.getPath().getName()))
.sorted(Comparator.reverseOrder())
.collect(Collectors.toCollection(TreeSet::new));
final List<StoragePathInfo> hashingMetaFiles = metaFiles.stream().filter(hashingMetadataFilePredicate)
.sorted(Comparator.comparing(f -> f.getPath().getName()))
.collect(Collectors.toList());

Option<Pair<String/*instant*/, StoragePathInfo/*hash metadata file path*/>> latestCommittedMetaFile = Option.fromJavaOptional(versionedHashMetadataFiles.entrySet()
.stream()
Expand Down

0 comments on commit efde0e3

Please sign in to comment.