@InterfaceAudience.Public
@InterfaceStability.Unstable
public class TezBytesComparator
extends org.apache.hadoop.io.WritableComparator
implements org.apache.tez.runtime.library.common.comparator.ProxyComparator<org.apache.hadoop.io.BytesWritable>
Constructor and Description |
---|
TezBytesComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
Compare the buffers in serialized form.
|
int |
getProxy(org.apache.hadoop.io.BytesWritable key)
This comparator interface provides a fast-path for comparisons between keys.
|
compare, compare, compareBytes, define, get, get, getConf, getKeyClass, hashBytes, hashBytes, newKey, readDouble, readFloat, readInt, readLong, readUnsignedShort, readVInt, readVLong, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compare, equals
public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
compare
in interface org.apache.hadoop.io.RawComparator
compare
in class org.apache.hadoop.io.WritableComparator
public int getProxy(org.apache.hadoop.io.BytesWritable key)
org.apache.tez.runtime.library.common.comparator.ProxyComparator
getProxy
in interface org.apache.tez.runtime.library.common.comparator.ProxyComparator<org.apache.hadoop.io.BytesWritable>
Copyright © 2016 Apache Software Foundation. All rights reserved.