Class 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.

    • Constructor Detail

      • ReplaceMissingSortedDocValues

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

      • ordValue

        public int ordValue()
                     throws IOException
        Specified by:
        ordValue in class org.apache.lucene.index.SortedDocValues
        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