org.apache.hadoop.hive.ql.io
Class HiveKey.Comparator

java.lang.Object
  extended by WritableComparator
      extended by org.apache.hadoop.hive.ql.io.HiveKey.Comparator
Enclosing class:
HiveKey

public static class HiveKey.Comparator
extends WritableComparator

A Comparator optimized for HiveKey.


Constructor Summary
HiveKey.Comparator()
           
 
Method Summary
 int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
          Compare the buffers in serialized form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveKey.Comparator

public HiveKey.Comparator()
Method Detail

compare

public int compare(byte[] b1,
                   int s1,
                   int l1,
                   byte[] b2,
                   int s2,
                   int l2)
Compare the buffers in serialized form.



Copyright © 2012 The Apache Software Foundation