public abstract class SortingBinaryDocValues extends SortedBinaryDocValues
SortedBinaryDocValues
instances based on unsorted content.Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected org.apache.lucene.util.BytesRefBuilder[] |
values |
Modifier | Constructor and Description |
---|---|
protected |
SortingBinaryDocValues() |
Modifier and Type | Method and Description |
---|---|
int |
count()
Return the number of values of the current document.
|
protected void |
grow()
|
protected void |
sort()
|
org.apache.lucene.util.BytesRef |
valueAt(int index)
Retrieve the value for the current document at the specified index.
|
setDocument
protected int count
protected org.apache.lucene.util.BytesRefBuilder[] values
protected final void grow()
protected final void sort()
public final int count()
SortedBinaryDocValues
count
in class SortedBinaryDocValues
public final org.apache.lucene.util.BytesRef valueAt(int index)
SortedBinaryDocValues
0
to count()-1
.
Note that the returned BytesRef
might be reused across invocations.valueAt
in class SortedBinaryDocValues