Module org.elasticsearch.server
Class BytesRefsFromBinaryBlockLoader
java.lang.Object
org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader.DocValuesBlockLoader
org.elasticsearch.index.mapper.blockloader.docvalues.BytesRefsFromBinaryBlockLoader
- All Implemented Interfaces:
BlockLoader
This block loader should be used for fields that are directly encoded as binary values but are always single valued, such as the
histogram fields. See also
BytesRefsFromCustomBinaryBlockLoader for multivalued binary fields, and
BytesRefsFromOrdsBlockLoader for ordinals-based binary values-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRead BinaryDocValues with no additional structure in the BytesRefs.Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.BlockLoader
BlockLoader.AggregateMetricDoubleBuilder, BlockLoader.Block, BlockLoader.BlockFactory, BlockLoader.BooleanBuilder, BlockLoader.Builder, BlockLoader.BytesRefBuilder, BlockLoader.ColumnAtATimeReader, BlockLoader.ConditionalBlockLoader, BlockLoader.Docs, BlockLoader.DoubleBuilder, BlockLoader.ExponentialHistogramBuilder, BlockLoader.FloatBuilder, BlockLoader.IntBuilder, BlockLoader.LongBuilder, BlockLoader.LongRangeBuilder, BlockLoader.OptionalColumnAtATimeReader, BlockLoader.OptionalLengthReader, BlockLoader.Reader, BlockLoader.RowStrideReader, BlockLoader.SingletonBytesRefBuilder, BlockLoader.SingletonDoubleBuilder, BlockLoader.SingletonIntBuilder, BlockLoader.SingletonLongBuilder, BlockLoader.SingletonOrdinalsBuilder, BlockLoader.SortedSetOrdinalsBuilder, BlockLoader.StoredFields, BlockLoader.TDigestBuilder -
Constructor Summary
ConstructorsConstructorDescriptionBytesRefsFromBinaryBlockLoader(String fieldName) BytesRefsFromBinaryBlockLoader(org.apache.lucene.util.IOFunction<org.apache.lucene.index.LeafReaderContext, org.apache.lucene.index.BinaryDocValues> docValuesSupplier) Create a block loader from aBinaryDocValuessupplier. -
Method Summary
Modifier and TypeMethodDescriptionbuilder(BlockLoader.BlockFactory factory, int expectedCount) TheBlockLoader.Builderfor data of this type.reader(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context) Methods inherited from class org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader.DocValuesBlockLoader
columnAtATimeReader, ordinals, rowStrideReader, rowStrideStoredFieldSpec, supportsOrdinals
-
Constructor Details
-
BytesRefsFromBinaryBlockLoader
-
BytesRefsFromBinaryBlockLoader
public BytesRefsFromBinaryBlockLoader(org.apache.lucene.util.IOFunction<org.apache.lucene.index.LeafReaderContext, org.apache.lucene.index.BinaryDocValues> docValuesSupplier) Create a block loader from aBinaryDocValuessupplier. This is useful when the doc values are not directly stored in a single field but are composed of multiple sources, as is the case for Pattern Text.
-
-
Method Details
-
builder
Description copied from interface:BlockLoaderTheBlockLoader.Builderfor data of this type. Called when loading from a multi-segment or unsorted block. -
reader
public BlockLoader.ColumnAtATimeReader reader(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context) throws IOException - Specified by:
readerin classBlockDocValuesReader.DocValuesBlockLoader- Throws:
IOException
-