Class XLongComparator

java.lang.Object
org.apache.lucene.search.FieldComparator<Long>
org.elasticsearch.lucene.comparators.XNumericComparator<Long>
org.elasticsearch.lucene.comparators.XLongComparator

public class XLongComparator extends XNumericComparator<Long>
  • Field Details

    • topValue

      protected long topValue
    • bottom

      protected long bottom
  • Constructor Details

    • XLongComparator

      public XLongComparator(int numHits, String field, Long missingValue, boolean reverse, org.apache.lucene.search.Pruning pruning)
  • Method Details

    • compare

      public int compare(int slot1, int slot2)
      Specified by:
      compare in class org.apache.lucene.search.FieldComparator<Long>
    • setTopValue

      public void setTopValue(Long value)
      Overrides:
      setTopValue in class XNumericComparator<Long>
    • value

      public Long value(int slot)
      Specified by:
      value in class org.apache.lucene.search.FieldComparator<Long>
    • missingValueAsComparableLong

      protected long missingValueAsComparableLong()
      Specified by:
      missingValueAsComparableLong in class XNumericComparator<Long>
    • sortableBytesToLong

      protected long sortableBytesToLong(byte[] bytes)
      Description copied from class: XNumericComparator
      Decode sortable bytes to long. It should be consistent with the codec that PointValues of this field is using.
      Specified by:
      sortableBytesToLong in class XNumericComparator<Long>
    • getLeafComparator

      public org.apache.lucene.search.LeafFieldComparator getLeafComparator(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Specified by:
      getLeafComparator in class org.apache.lucene.search.FieldComparator<Long>
      Throws:
      IOException