Class IntegrationTestBulkLoad.NaturalKeyGroupingComparator
java.lang.Object
org.apache.hadoop.io.WritableComparator
org.apache.hadoop.hbase.mapreduce.IntegrationTestBulkLoad.NaturalKeyGroupingComparator
- All Implemented Interfaces:
Comparator
,org.apache.hadoop.conf.Configurable
,org.apache.hadoop.io.RawComparator
- Enclosing class:
- IntegrationTestBulkLoad
public static class IntegrationTestBulkLoad.NaturalKeyGroupingComparator
extends org.apache.hadoop.io.WritableComparator
Comparator used to figure out if a linkKey should be grouped together. This is based upon the
linkKey's ChainId.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(org.apache.hadoop.io.WritableComparable w1, org.apache.hadoop.io.WritableComparable w2) Methods inherited from class org.apache.hadoop.io.WritableComparator
compare, compare, compareBytes, define, get, get, getConf, getKeyClass, hashBytes, hashBytes, newKey, readDouble, readFloat, readInt, readLong, readUnsignedShort, readVInt, readVLong, setConf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
NaturalKeyGroupingComparator
protected NaturalKeyGroupingComparator()
-
-
Method Details
-
compare
public int compare(org.apache.hadoop.io.WritableComparable w1, org.apache.hadoop.io.WritableComparable w2) - Overrides:
compare
in classorg.apache.hadoop.io.WritableComparator
-