Module org.apache.lucene.suggest
Package org.apache.lucene.search.suggest
Class DocumentValueSourceDictionary.DocumentValueSourceInputIterator
java.lang.Object
org.apache.lucene.search.suggest.DocumentDictionary.DocumentInputIterator
org.apache.lucene.search.suggest.DocumentValueSourceDictionary.DocumentValueSourceInputIterator
- All Implemented Interfaces:
InputIterator,BytesRefIterator
- Enclosing class:
DocumentValueSourceDictionary
final class DocumentValueSourceDictionary.DocumentValueSourceInputIterator
extends DocumentDictionary.DocumentInputIterator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.lucene.search.suggest.InputIterator
InputIterator.InputIteratorWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intcurrent leave indexprivate LongValuesprivate final List<LeafReaderContext> leaves of the readerprivate final int[]starting docIds of all the leavesFields inherited from class org.apache.lucene.search.suggest.DocumentDictionary.DocumentInputIterator
currentDocFields, nextFieldsPositionFields inherited from interface org.apache.lucene.search.suggest.InputIterator
EMPTY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.search.suggest.DocumentDictionary.DocumentInputIterator
contexts, hasContexts, hasPayloads, next, payload, weight
-
Field Details
-
currentWeightValues
-
leaves
leaves of the reader -
starts
private final int[] startsstarting docIds of all the leaves -
currentLeafIndex
private int currentLeafIndexcurrent leave index
-
-
Constructor Details
-
DocumentValueSourceInputIterator
public DocumentValueSourceInputIterator(boolean hasPayloads, boolean hasContexts) throws IOException - Throws:
IOException
-
-
Method Details
-
getWeight
Returns the weight for the currentdocIdas computed by theweightsValueSource- Overrides:
getWeightin classDocumentDictionary.DocumentInputIterator- Throws:
IOException
-