Terrier IR Platform
2.2.1

uk.ac.gla.terrier.structures.indexing.singlepass.hadoop
Class MapEmittedTerm.TermComparator

java.lang.Object
  extended by uk.ac.gla.terrier.structures.indexing.singlepass.hadoop.MapEmittedTerm.TermComparator
All Implemented Interfaces:
java.util.Comparator<MapEmittedTerm>, org.apache.hadoop.io.RawComparator<MapEmittedTerm>
Enclosing class:
MapEmittedTerm

public static class MapEmittedTerm.TermComparator
extends java.lang.Object
implements org.apache.hadoop.io.RawComparator<MapEmittedTerm>

Comparator for MapEmittedTerm objects - order only by Term.


Constructor Summary
MapEmittedTerm.TermComparator()
           
 
Method Summary
 int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
          Raw comparison on text objects NOT USED
 int compare(MapEmittedTerm a, MapEmittedTerm b)
          Compares Hadoop_TextPlus objects by comparison of the Text variables.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

MapEmittedTerm.TermComparator

public MapEmittedTerm.TermComparator()
Method Detail

compare

public int compare(MapEmittedTerm a,
                   MapEmittedTerm b)
Compares Hadoop_TextPlus objects by comparison of the Text variables.

Specified by:
compare in interface java.util.Comparator<MapEmittedTerm>

compare

public int compare(byte[] b1,
                   int s1,
                   int l1,
                   byte[] b2,
                   int s2,
                   int l2)
Raw comparison on text objects NOT USED

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

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow