public static class InvertedIndex.InvertedIndexKey.SortingComparator extends InvertedIndex.InvertedIndexKey.GroupingComparator
InvertedIndex.InvertedIndexKey.GroupingComparator
and compares the value elements (location and offset) of this composite key. It is used as the sorting comparator.Constructor and Description |
---|
InvertedIndex.InvertedIndexKey.SortingComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) |
int |
compare(InvertedIndex.InvertedIndexKey a, InvertedIndex.InvertedIndexKey b) |
public InvertedIndex.InvertedIndexKey.SortingComparator()
public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
compare
in interface org.apache.hadoop.io.RawComparator<InvertedIndex.InvertedIndexKey>
compare
in class InvertedIndex.InvertedIndexKey.GroupingComparator
public int compare(InvertedIndex.InvertedIndexKey a, InvertedIndex.InvertedIndexKey b)
compare
in interface java.util.Comparator<InvertedIndex.InvertedIndexKey>
compare
in class InvertedIndex.InvertedIndexKey.GroupingComparator