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()
NumericDocValues
public void setDocument(int doc)
SortedNumericDocValues
setDocument
in class SortedNumericDocValues
public long valueAt(int index)
SortedNumericDocValues
0
to count()-1
.valueAt
in class SortedNumericDocValues
public int count()
SortedNumericDocValues
count
in class SortedNumericDocValues