org.terrier.structures.indexing.singlepass.hadoop
Class NewSplitEmittedTerm.SETRawComparatorTermSplitFlush

java.lang.Object
  extended by org.terrier.structures.indexing.singlepass.hadoop.NewSplitEmittedTerm.SETRawComparatorTermSplitFlush
All Implemented Interfaces:
Serializable, Comparator<NewSplitEmittedTerm>, org.apache.hadoop.io.RawComparator<NewSplitEmittedTerm>
Enclosing class:
NewSplitEmittedTerm

public static class NewSplitEmittedTerm.SETRawComparatorTermSplitFlush
extends Object
implements org.apache.hadoop.io.RawComparator<NewSplitEmittedTerm>, Serializable

See Also:
Serialized Form

Constructor Summary
NewSplitEmittedTerm.SETRawComparatorTermSplitFlush()
           
 
Method Summary
 int compare(byte[] bterm1, int offset1, int length1, byte[] bterm2, int offset2, int length2)
          Compares raw Term key 1 to raw Term key 2.
 int compare(NewSplitEmittedTerm term1, NewSplitEmittedTerm term2)
          Compares Term key 1 to Term key 2.
 
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

NewSplitEmittedTerm.SETRawComparatorTermSplitFlush

public NewSplitEmittedTerm.SETRawComparatorTermSplitFlush()
Method Detail

compare

public int compare(byte[] bterm1,
                   int offset1,
                   int length1,
                   byte[] bterm2,
                   int offset2,
                   int length2)
Compares raw Term key 1 to raw Term key 2. Note that terms are unique only in conjunction with their associated split and flush.

Specified by:
compare in interface org.apache.hadoop.io.RawComparator<NewSplitEmittedTerm>

compare

public int compare(NewSplitEmittedTerm term1,
                   NewSplitEmittedTerm term2)
Compares Term key 1 to Term key 2. Note that terms are unique only in conjunction with their associated split and flush.

Specified by:
compare in interface Comparator<NewSplitEmittedTerm>


Copyright © 2011 The University of Southampton. All Rights Reserved.