org.elasticsearch.index.field.data.ints
Class IntFieldDataComparator

java.lang.Object
  extended by org.apache.lucene.search.FieldComparator
      extended by org.elasticsearch.index.field.data.support.NumericFieldDataComparator
          extended by org.elasticsearch.index.field.data.ints.IntFieldDataComparator

public class IntFieldDataComparator
extends NumericFieldDataComparator


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator
org.apache.lucene.search.FieldComparator.ByteComparator, org.apache.lucene.search.FieldComparator.DocComparator, org.apache.lucene.search.FieldComparator.DoubleComparator, org.apache.lucene.search.FieldComparator.FloatComparator, org.apache.lucene.search.FieldComparator.IntComparator, org.apache.lucene.search.FieldComparator.LongComparator, org.apache.lucene.search.FieldComparator.RelevanceComparator, org.apache.lucene.search.FieldComparator.ShortComparator, org.apache.lucene.search.FieldComparator.StringComparatorLocale, org.apache.lucene.search.FieldComparator.StringOrdValComparator, org.apache.lucene.search.FieldComparator.StringValComparator
 
Field Summary
 
Fields inherited from class org.elasticsearch.index.field.data.support.NumericFieldDataComparator
currentFieldData, fieldDataCache
 
Constructor Summary
IntFieldDataComparator(int numHits, java.lang.String fieldName, FieldDataCache fieldDataCache)
           
 
Method Summary
 int compare(int slot1, int slot2)
           
 int compareBottom(int doc)
           
 void copy(int slot, int doc)
           
 FieldDataType fieldDataType()
           
 void setBottom(int bottom)
           
 java.lang.Comparable value(int slot)
           
 
Methods inherited from class org.elasticsearch.index.field.data.support.NumericFieldDataComparator
setNextReader
 
Methods inherited from class org.apache.lucene.search.FieldComparator
binarySearch, binarySearch, setScorer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntFieldDataComparator

public IntFieldDataComparator(int numHits,
                              java.lang.String fieldName,
                              FieldDataCache fieldDataCache)
Method Detail

fieldDataType

public FieldDataType fieldDataType()
Specified by:
fieldDataType in class NumericFieldDataComparator

compare

public int compare(int slot1,
                   int slot2)
Specified by:
compare in class org.apache.lucene.search.FieldComparator

compareBottom

public int compareBottom(int doc)
Specified by:
compareBottom in class org.apache.lucene.search.FieldComparator

copy

public void copy(int slot,
                 int doc)
Specified by:
copy in class org.apache.lucene.search.FieldComparator

setBottom

public void setBottom(int bottom)
Specified by:
setBottom in class org.apache.lucene.search.FieldComparator

value

public java.lang.Comparable value(int slot)
Specified by:
value in class org.apache.lucene.search.FieldComparator