Package org.apache.lucene.facet.taxonomy
Class DocValuesOrdinalsReader
- java.lang.Object
-
- org.apache.lucene.facet.taxonomy.OrdinalsReader
-
- org.apache.lucene.facet.taxonomy.DocValuesOrdinalsReader
-
@Deprecated public class DocValuesOrdinalsReader extends OrdinalsReader
Deprecated.Custom binary encodings for taxonomy ordinals are no longer supported starting with Lucene 9Decodes 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
Constructors Constructor Description DocValuesOrdinalsReader()Deprecated.Default constructor.DocValuesOrdinalsReader(String field)Deprecated.Create this, with the specified indexed field name.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddecode(BytesRef buf, IntsRef ordinals)Deprecated.Subclass and override if you change the encoding.StringgetIndexFieldName()Deprecated.Returns the indexed field name thisOrdinalsReaderis reading from.OrdinalsReader.OrdinalsSegmentReadergetReader(LeafReaderContext context)Deprecated.Set current atomic reader.
-
-
-
Constructor Detail
-
DocValuesOrdinalsReader
public DocValuesOrdinalsReader()
Deprecated.Default constructor.
-
DocValuesOrdinalsReader
public DocValuesOrdinalsReader(String field)
Deprecated.Create this, with the specified indexed field name.
-
-
Method Detail
-
getReader
public OrdinalsReader.OrdinalsSegmentReader getReader(LeafReaderContext context) throws IOException
Deprecated.Description copied from class:OrdinalsReaderSet current atomic reader.- Specified by:
getReaderin classOrdinalsReader- Throws:
IOException
-
getIndexFieldName
public String getIndexFieldName()
Deprecated.Description copied from class:OrdinalsReaderReturns the indexed field name thisOrdinalsReaderis reading from.- Specified by:
getIndexFieldNamein classOrdinalsReader
-
decode
public void decode(BytesRef buf, IntsRef ordinals)
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
BinaryDocValuesreader 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
-
-