private class TieredMergePolicy.SegmentByteSizeDescending extends java.lang.Object implements java.util.Comparator<SegmentCommitInfo>
Modifier and Type | Field and Description |
---|---|
private java.util.Map<SegmentCommitInfo,java.lang.Long> |
sizeInBytes |
Constructor and Description |
---|
SegmentByteSizeDescending(java.util.Map<SegmentCommitInfo,java.lang.Long> sizeInBytes) |
Modifier and Type | Method and Description |
---|---|
int |
compare(SegmentCommitInfo o1,
SegmentCommitInfo o2) |
private final java.util.Map<SegmentCommitInfo,java.lang.Long> sizeInBytes
SegmentByteSizeDescending(java.util.Map<SegmentCommitInfo,java.lang.Long> sizeInBytes)
public int compare(SegmentCommitInfo o1, SegmentCommitInfo o2)
compare
in interface java.util.Comparator<SegmentCommitInfo>