org.apache.hama.util
Class Bytes.ByteArrayComparator
java.lang.Object
org.apache.hama.util.Bytes.ByteArrayComparator
- All Implemented Interfaces:
- java.util.Comparator<byte[]>, org.apache.hadoop.io.RawComparator<byte[]>
- Enclosing class:
- Bytes
public static class Bytes.ByteArrayComparator
- extends java.lang.Object
- implements org.apache.hadoop.io.RawComparator<byte[]>
Byte array comparator class.
Method Summary |
int |
compare(byte[] left,
byte[] right)
|
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
|
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 |
Bytes.ByteArrayComparator
public Bytes.ByteArrayComparator()
- Constructor
compare
public int compare(byte[] left,
byte[] right)
- Specified by:
compare
in interface java.util.Comparator<byte[]>
compare
public int compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
- Specified by:
compare
in interface org.apache.hadoop.io.RawComparator<byte[]>
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.