org.apache.hadoop.hbase.filter
Class NullComparator

java.lang.Object
  extended by org.apache.hadoop.hbase.filter.WritableByteArrayComparable
      extended by org.apache.hadoop.hbase.filter.NullComparator
All Implemented Interfaces:
Comparable<byte[]>, org.apache.hadoop.io.Writable

public class NullComparator
extends WritableByteArrayComparable

A binary comparator which lexicographically compares against the specified byte array using Bytes.compareTo(byte[], byte[]).


Constructor Summary
NullComparator()
          Nullary constructor for Writable, do not use
 
Method Summary
 int compareTo(byte[] value)
           
 int compareTo(byte[] value, int offset, int length)
          Special compareTo method for subclasses, to avoid copying byte[] unnecessarily.
 
Methods inherited from class org.apache.hadoop.hbase.filter.WritableByteArrayComparable
getValue, readFields, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullComparator

public NullComparator()
Nullary constructor for Writable, do not use

Method Detail

compareTo

public int compareTo(byte[] value)
Specified by:
compareTo in interface Comparable<byte[]>
Overrides:
compareTo in class WritableByteArrayComparable

compareTo

public int compareTo(byte[] value,
                     int offset,
                     int length)
Description copied from class: WritableByteArrayComparable
Special compareTo method for subclasses, to avoid copying byte[] unnecessarily.

Specified by:
compareTo in class WritableByteArrayComparable
Parameters:
value - byte[] to compare
offset - offset into value
length - number of bytes to compare
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.