Package org.apache.lucene.facet.taxonomy
Class DocValuesOrdinalsReader
java.lang.Object
org.apache.lucene.facet.taxonomy.OrdinalsReader
org.apache.lucene.facet.taxonomy.DocValuesOrdinalsReader
Deprecated.
Custom binary encodings for taxonomy ordinals are no longer supported starting with
Lucene 9
Decodes ordinals previously indexed into a BinaryDocValues field
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.facet.taxonomy.OrdinalsReader
OrdinalsReader.OrdinalsSegmentReader
-
Constructor Summary
ConstructorDescriptionDeprecated.Default constructor.DocValuesOrdinalsReader
(String field) Deprecated.Create this, with the specified indexed field name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Subclass and override if you change the encoding.Deprecated.Returns the indexed field name thisOrdinalsReader
is reading from.getReader
(LeafReaderContext context) Deprecated.Set current atomic reader.
-
Constructor Details
-
DocValuesOrdinalsReader
public DocValuesOrdinalsReader()Deprecated.Default constructor. -
DocValuesOrdinalsReader
Deprecated.Create this, with the specified indexed field name.
-
-
Method Details
-
getReader
Deprecated.Description copied from class:OrdinalsReader
Set current atomic reader.- Specified by:
getReader
in classOrdinalsReader
- Throws:
IOException
-
getIndexFieldName
Deprecated.Description copied from class:OrdinalsReader
Returns the indexed field name thisOrdinalsReader
is reading from.- Specified by:
getIndexFieldName
in classOrdinalsReader
-
decode
Deprecated.Subclass and override if you change the encoding. The method is marked 'public' to allow decoding of binary payload containing ordinals without instantiating anOrdinalsReader.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.- Parameters:
buf
- binary payload containing encoded ordinalsordinals
- buffer for decoded ordinals
-