public class DocValuesOrdinalsReader extends OrdinalsReader
OrdinalsReader.OrdinalsSegmentReader
Constructor and Description |
---|
DocValuesOrdinalsReader()
Default constructor.
|
DocValuesOrdinalsReader(String field)
Create this, with the specified indexed field name.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(BytesRef buf,
IntsRef ordinals)
Subclass and override if you change the encoding.
|
String |
getIndexFieldName()
Returns the indexed field name this
OrdinalsReader is reading from. |
OrdinalsReader.OrdinalsSegmentReader |
getReader(LeafReaderContext context)
Set current atomic reader.
|
public DocValuesOrdinalsReader()
public DocValuesOrdinalsReader(String field)
public OrdinalsReader.OrdinalsSegmentReader getReader(LeafReaderContext context) throws IOException
OrdinalsReader
getReader
in class OrdinalsReader
IOException
public String getIndexFieldName()
OrdinalsReader
OrdinalsReader
is reading from.getIndexFieldName
in class OrdinalsReader
public void decode(BytesRef buf, IntsRef ordinals)
OrdinalsReader.OrdinalsSegmentReader
.
This takes care of use cases where an application instantiates BinaryDocValues
reader for a facet field outside this class, reads the binary payload for a document and decodes the ordinals
in the payload.buf
- binary payload containing encoded ordinalsordinals
- buffer for decoded ordinalsCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.