org.apache.gora.mapreduce
Class StringComparator

java.lang.Object
  extended by org.apache.gora.mapreduce.StringComparator
All Implemented Interfaces:
Comparator<String>, org.apache.hadoop.io.RawComparator<String>

public class StringComparator
extends Object
implements org.apache.hadoop.io.RawComparator<String>


Constructor Summary
StringComparator()
           
 
Method Summary
 int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
           
 int compare(String o1, String o2)
           
 
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
 

Constructor Detail

StringComparator

public StringComparator()
Method Detail

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<String>

compare

public int compare(String o1,
                   String o2)
Specified by:
compare in interface Comparator<String>


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.