java.lang.Object
org.apache.lucene.facet.StringDocValuesReaderState
Stores an
OrdinalMap created for a specific IndexReader (reader) +
field. Enables re-use of the ordinalMap once created since creation is costly.
Note: It's important that callers confirm the ordinal map is still valid for their cases.
Specifically, callers should confirm that the reader used to create the map (reader)
matches their use-case.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final String(package private) final OrdinalMap(package private) final IndexReader -
Constructor Summary
ConstructorsConstructorDescriptionStringDocValuesReaderState(IndexReader reader, String field) Construct state specific to a reader + field. -
Method Summary
Modifier and TypeMethodDescriptionprivate static OrdinalMapbuildOrdinalMap(IndexReader reader, String field) toString()
-
Field Details
-
reader
-
field
-
ordinalMap
-
-
Constructor Details
-
StringDocValuesReaderState
Construct state specific to a reader + field. This builds anOrdinalMapthat can be reused for mapping segment-specific ordinals to global ordinals for the given field. Keep in mind that the state is only valid for the specifiedIndexReader, so opening new readers (e.g., to pickup NRT updates) requires constructing a new state instance.- Throws:
IOException
-
-
Method Details
-
buildOrdinalMap
- Throws:
IOException
-
toString
-