final class DocumentValueSourceDictionary.DocumentValueSourceInputIterator extends DocumentDictionary.DocumentInputIterator
InputIterator.InputIteratorWrapper
Modifier and Type | Field and Description |
---|---|
private int |
currentLeafIndex
current leave index
|
private LongValues |
currentWeightValues |
private java.util.List<LeafReaderContext> |
leaves
leaves of the reader
|
private int[] |
starts
starting docIds of all the leaves
|
currentDocFields, nextFieldsPosition
EMPTY
Constructor and Description |
---|
DocumentValueSourceInputIterator(boolean hasPayloads,
boolean hasContexts) |
Modifier and Type | Method and Description |
---|---|
protected long |
getWeight(Document doc,
int docId)
Returns the weight for the current
docId as computed
by the weightsValueSource |
contexts, hasContexts, hasPayloads, next, payload, weight
private LongValues currentWeightValues
private final java.util.List<LeafReaderContext> leaves
private final int[] starts
private int currentLeafIndex
public DocumentValueSourceInputIterator(boolean hasPayloads, boolean hasContexts) throws java.io.IOException
java.io.IOException
protected long getWeight(Document doc, int docId) throws java.io.IOException
docId
as computed
by the weightsValueSource
getWeight
in class DocumentDictionary.DocumentInputIterator
java.io.IOException