Class Bytes.ByteArrayComparator

java.lang.Object
org.apache.hadoop.hbase.util.Bytes.ByteArrayComparator
All Implemented Interfaces:
Comparator<byte[]>, org.apache.hadoop.io.RawComparator<byte[]>
Direct Known Subclasses:
Bytes.RowEndKeyComparator
Enclosing class:
Bytes

@Public public static class Bytes.ByteArrayComparator extends Object implements org.apache.hadoop.io.RawComparator<byte[]>
Byte array comparator class.
  • Constructor Details

  • Method Details

    • compare

      public int compare(byte[] left, byte[] right)
      Specified by:
      compare in interface 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[]>