Class BinaryColumn
java.lang.Object
org.apache.lucene.document.column.Column
org.apache.lucene.document.column.BinaryColumn
A
Column that provides variable-size binary values via a tuple cursor. Used for BINARY, SORTED, and SORTED_SET doc values, and for stored/indexed
binary or text fields. Values fed to points are passed through unchanged, so callers are
responsible for producing sort-encoded bytes of the correct total length.
Numeric doc values (NUMERIC / SORTED_NUMERIC) and 1-D numeric points (int
/ long / float / double) are fed by LongColumn instead.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.document.column.Column
Column.Density -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBinaryColumn(String name, IndexableFieldType fieldType, Column.Density density) Creates a BinaryColumn with the given field name, type, and density. -
Method Summary
Modifier and TypeMethodDescriptionTheStoredValue.Typeto emit when this column is written to stored fields.abstract ObjectTupleCursor<BytesRef> tuples()Returns a fresh tuple cursor starting at the beginning of the batch.values()Returns a fresh values cursor iterating dense binary values for doc-ids[0, numDocs).
-
Constructor Details
-
BinaryColumn
Creates a BinaryColumn with the given field name, type, and density.
-
-
Method Details
-
storedType
TheStoredValue.Typeto emit when this column is written to stored fields. The default isStoredValue.Type.BINARY. OnlyStoredValue.Type.BINARYandStoredValue.Type.STRINGare supported; numeric stored types requireLongColumn. -
tuples
Returns a fresh tuple cursor starting at the beginning of the batch. -
values
Returns a fresh values cursor iterating dense binary values for doc-ids[0, numDocs). Must be overridden whenColumn.density()isDENSE; the default implementation throwsUnsupportedOperationExceptionand is never called forSPARSEcolumns.
-