final class SingletonSortedNumericDocValues extends SortedNumericDocValues
This can be used if you want to have one multi-valued implementation that works for single or multi-valued types.
| Modifier and Type | Field and Description |
|---|---|
private int |
count |
private Bits |
docsWithField |
private NumericDocValues |
in |
private long |
value |
| Constructor and Description |
|---|
SingletonSortedNumericDocValues(NumericDocValues in,
Bits docsWithField) |
| Modifier and Type | Method and Description |
|---|---|
int |
count()
Retrieves the count of values for the current document.
|
Bits |
getDocsWithField()
Return the wrapped
Bits |
NumericDocValues |
getNumericDocValues()
Return the wrapped
NumericDocValues |
void |
setDocument(int doc)
Positions to the specified document
|
long |
valueAt(int index)
Retrieve the value for the current document at the specified index.
|
private final NumericDocValues in
private final Bits docsWithField
private long value
private int count
public SingletonSortedNumericDocValues(NumericDocValues in, Bits docsWithField)
public NumericDocValues getNumericDocValues()
NumericDocValuespublic void setDocument(int doc)
SortedNumericDocValuessetDocument in class SortedNumericDocValuespublic long valueAt(int index)
SortedNumericDocValues0 to count()-1.valueAt in class SortedNumericDocValuespublic int count()
SortedNumericDocValuescount in class SortedNumericDocValues