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
Fields Modifier and Type Field Description private int
currentLeafIndex
current leave indexprivate LongValues
currentWeightValues
private java.util.List<LeafReaderContext>
leaves
leaves of the readerprivate int[]
starts
starting docIds of all the leaves-
Fields inherited from class org.apache.lucene.search.suggest.DocumentDictionary.DocumentInputIterator
currentDocFields, nextFieldsPosition
-
Fields inherited from interface org.apache.lucene.search.suggest.InputIterator
EMPTY
-
-
Constructor Summary
Constructors Constructor Description DocumentValueSourceInputIterator(boolean hasPayloads, boolean hasContexts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
getWeight(Document doc, int docId)
Returns the weight for the currentdocId
as computed by theweightsValueSource
-
Methods inherited from class org.apache.lucene.search.suggest.DocumentDictionary.DocumentInputIterator
contexts, hasContexts, hasPayloads, next, payload, weight
-
-
-
-
Field Detail
-
currentWeightValues
private LongValues currentWeightValues
-
leaves
private final java.util.List<LeafReaderContext> leaves
leaves of the reader
-
starts
private final int[] starts
starting docIds of all the leaves
-
currentLeafIndex
private int currentLeafIndex
current leave index
-
-
Method Detail
-
getWeight
protected long getWeight(Document doc, int docId) throws java.io.IOException
Returns the weight for the currentdocId
as computed by theweightsValueSource
- Overrides:
getWeight
in classDocumentDictionary.DocumentInputIterator
- Throws:
java.io.IOException
-
-