public class KeyWrapperComparator extends Object implements Comparator<KeyWrapper>
KeyWrapper.
This comparator uses the ObjectInspectors provided in the newObjectInspectors array to extract key values
from wrapped Object arrays by default.
KeyWrapper instances are cloned when KeyWrapper.copyKey() is called. In this case the wrapped
key values are deep copied and converted to standard objects using ObjectInspectorUtils.copyToStandardObject(java.util.List<java.lang.Object>, java.lang.Object, org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.ObjectInspectorCopyOption).
The comparator uses copyObjectInspectors when extracting key values from clones.| Modifier and Type | Method and Description |
|---|---|
int |
compare(KeyWrapper key1,
KeyWrapper key2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(KeyWrapper key1, KeyWrapper key2)
compare in interface Comparator<KeyWrapper>Copyright © 2022 The Apache Software Foundation. All rights reserved.