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
  • 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
    • compareMissingValueWithTopValue

      protected int compareMissingValueWithTopValue()
      Specified by:
      compareMissingValueWithTopValue in class org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
    • compareMissingValueWithBottomValue

      protected int compareMissingValueWithBottomValue()
      Specified by:
      compareMissingValueWithBottomValue in class org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
    • encodeBottom

      protected void encodeBottom(byte[] packedValue)
      Specified by:
      encodeBottom in class org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
    • encodeTop

      protected void encodeTop(byte[] packedValue)
      Specified by:
      encodeTop in class org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator