Class SortedBinaryDocValues
- java.lang.Object
-
- org.elasticsearch.index.fielddata.SortedBinaryDocValues
-
- Direct Known Subclasses:
SortingBinaryDocValues
public abstract class SortedBinaryDocValues extends java.lang.ObjectA list of per-document binary values, sorted according toBytesRef.compareTo(BytesRef). There might be dups however.
-
-
Constructor Summary
Constructors Constructor Description SortedBinaryDocValues()
-
Method Summary
Modifier and Type Method Description abstract booleanadvanceExact(int doc)Advance this instance to the given document idabstract intdocValueCount()Retrieves the number of values for the current document.abstract org.apache.lucene.util.BytesRefnextValue()Iterates to the next value in the current document.
-
-
-
Method Detail
-
advanceExact
public abstract boolean advanceExact(int doc) throws java.io.IOExceptionAdvance this instance to the given document id- Returns:
- true if there is a value for this document
- Throws:
java.io.IOException
-
docValueCount
public abstract int docValueCount()
Retrieves the number of values for the current document. This must always be greater than zero. It is illegal to call this method afteradvanceExact(int)returnedfalse.
-
nextValue
public abstract org.apache.lucene.util.BytesRef nextValue() throws java.io.IOExceptionIterates to the next value in the current document. Do not call this more thandocValueCount()times for the document. Note that the returnedBytesRefmight be reused across invocations.- Throws:
java.io.IOException
-
-