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, nextFieldsPositionEMPTY| 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, weightprivate 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.IOExceptionprotected long getWeight(Document doc, int docId) throws java.io.IOException
docId as computed
by the weightsValueSourcegetWeight in class DocumentDictionary.DocumentInputIteratorjava.io.IOException