Class HalfFloatComparator.HalfFloatLeafComparator

java.lang.Object
org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
org.elasticsearch.index.fielddata.fieldcomparator.HalfFloatComparator.HalfFloatLeafComparator
All Implemented Interfaces:
org.apache.lucene.search.LeafFieldComparator
Enclosing class:
HalfFloatComparator

public class HalfFloatComparator.HalfFloatLeafComparator extends org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
Leaf comparator for HalfFloatComparator that provides skipping functionality
  • Field Summary

    Fields inherited from class org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator

    docValues
  • Constructor Summary

    Constructors
    Constructor
    Description
    HalfFloatLeafComparator(org.apache.lucene.index.LeafReaderContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected long
     
    int
    compareBottom(int doc)
     
    int
    compareTop(int doc)
     
    void
    copy(int slot, int doc)
     
    void
    setBottom(int slot)
     
    protected long
     

    Methods inherited from class org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator

    competitiveIterator, getNumericDocValues, setHitsThresholdReached, setScorer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HalfFloatLeafComparator

      public HalfFloatLeafComparator(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Throws:
      IOException
  • Method Details

    • setBottom

      public void setBottom(int slot) throws IOException
      Specified by:
      setBottom in interface org.apache.lucene.search.LeafFieldComparator
      Overrides:
      setBottom in class org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
      Throws:
      IOException
    • compareBottom

      public int compareBottom(int doc) throws IOException
      Throws:
      IOException
    • compareTop

      public int compareTop(int doc) throws IOException
      Throws:
      IOException
    • copy

      public void copy(int slot, int doc) throws IOException
      Specified by:
      copy in interface org.apache.lucene.search.LeafFieldComparator
      Overrides:
      copy in class org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
      Throws:
      IOException
    • bottomAsComparableLong

      protected long bottomAsComparableLong()
      Specified by:
      bottomAsComparableLong in class org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
    • topAsComparableLong

      protected long topAsComparableLong()
      Specified by:
      topAsComparableLong in class org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator