Class ReplaceMissingSortedDocValues
- java.lang.Object
-
- org.apache.lucene.search.DocIdSetIterator
-
- org.apache.lucene.index.BinaryDocValues
-
- org.apache.lucene.index.SortedDocValues
-
- org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.ReplaceMissingSortedDocValues
-
public class ReplaceMissingSortedDocValues extends org.apache.lucene.index.SortedDocValuesHandles a replacement for missing sorted document values.Copied with some changes from
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefComparatorSource.ReplaceMissingof Elasticsearch project.
-
-
Constructor Summary
Constructors Constructor Description ReplaceMissingSortedDocValues(org.apache.lucene.index.SortedDocValues originalValues, org.apache.lucene.util.BytesRef missingValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intadvance(int target)booleanadvanceExact(int target)longcost()intdocID()intgetValueCount()org.apache.lucene.util.BytesReflookupOrd(int ord)intnextDoc()intordValue()-
Methods inherited from class org.apache.lucene.index.SortedDocValues
binaryValue, intersect, lookupTerm, termsEnum
-
-
-
-
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:
ordValuein classorg.apache.lucene.index.SortedDocValues- Throws:
IOException
-
advanceExact
public boolean advanceExact(int target) throws IOException- Throws:
IOException
-
docID
public int docID()
- Specified by:
docIDin classorg.apache.lucene.search.DocIdSetIterator
-
getValueCount
public int getValueCount()
- Specified by:
getValueCountin classorg.apache.lucene.index.SortedDocValues
-
lookupOrd
public org.apache.lucene.util.BytesRef lookupOrd(int ord) throws IOException- Specified by:
lookupOrdin classorg.apache.lucene.index.SortedDocValues- Throws:
IOException
-
nextDoc
public int nextDoc()
- Specified by:
nextDocin classorg.apache.lucene.search.DocIdSetIterator
-
advance
public int advance(int target)
- Specified by:
advancein classorg.apache.lucene.search.DocIdSetIterator
-
cost
public long cost()
- Specified by:
costin classorg.apache.lucene.search.DocIdSetIterator
-
-