Class ReplaceMissingSortedDocValues

java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.SortedDocValues
org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.ReplaceMissingSortedDocValues

public class ReplaceMissingSortedDocValues extends org.apache.lucene.index.SortedDocValues
Handles a replacement for missing sorted document values.

Copied with some changes from org.elasticsearch.index.fielddata.fieldcomparator.BytesRefComparatorSource.ReplaceMissing of Elasticsearch project.

  • Field Summary

    Fields inherited from class org.apache.lucene.search.DocIdSetIterator

    NO_MORE_DOCS
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReplaceMissingSortedDocValues(org.apache.lucene.index.SortedDocValues originalValues, org.apache.lucene.util.BytesRef missingValue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    advance(int target)
     
    boolean
    advanceExact(int target)
     
    long
     
    int
     
    int
     
    org.apache.lucene.util.BytesRef
    lookupOrd(int ord)
     
    int
     
    int
     

    Methods inherited from class org.apache.lucene.index.SortedDocValues

    intersect, lookupTerm, termsEnum

    Methods inherited from class org.apache.lucene.search.DocIdSetIterator

    all, empty, range, slowAdvance

    Methods inherited from class java.lang.Object

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

    • ReplaceMissingSortedDocValues

      public ReplaceMissingSortedDocValues(org.apache.lucene.index.SortedDocValues originalValues, org.apache.lucene.util.BytesRef missingValue) throws IOException
      Throws:
      IOException
  • Method Details

    • ordValue

      public int ordValue() throws IOException
      Specified by:
      ordValue in class org.apache.lucene.index.SortedDocValues
      Throws:
      IOException
    • advanceExact

      public boolean advanceExact(int target) throws IOException
      Throws:
      IOException
    • docID

      public int docID()
      Specified by:
      docID in class org.apache.lucene.search.DocIdSetIterator
    • getValueCount

      public int getValueCount()
      Specified by:
      getValueCount in class org.apache.lucene.index.SortedDocValues
    • lookupOrd

      public org.apache.lucene.util.BytesRef lookupOrd(int ord) throws IOException
      Specified by:
      lookupOrd in class org.apache.lucene.index.SortedDocValues
      Throws:
      IOException
    • nextDoc

      public int nextDoc()
      Specified by:
      nextDoc in class org.apache.lucene.search.DocIdSetIterator
    • advance

      public int advance(int target)
      Specified by:
      advance in class org.apache.lucene.search.DocIdSetIterator
    • cost

      public long cost()
      Specified by:
      cost in class org.apache.lucene.search.DocIdSetIterator