- All Known Implementing Classes:
AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType.BoundsBlockLoader,BlockDocValuesReader.BooleansBlockLoader,BlockDocValuesReader.BytesRefsFromBinaryBlockLoader,BlockDocValuesReader.BytesRefsFromOrdsBlockLoader,BlockDocValuesReader.DenseVectorBlockLoader,BlockDocValuesReader.DenseVectorFromBinaryBlockLoader,BlockDocValuesReader.DocValuesBlockLoader,BlockDocValuesReader.DoublesBlockLoader,BlockDocValuesReader.IntsBlockLoader,BlockDocValuesReader.LongsBlockLoader,BlockLoader.Delegating,BlockSourceReader.BooleansBlockLoader,BlockSourceReader.BytesRefsBlockLoader,BlockSourceReader.DenseVectorBlockLoader,BlockSourceReader.DoublesBlockLoader,BlockSourceReader.GeometriesBlockLoader,BlockSourceReader.IntsBlockLoader,BlockSourceReader.IpsBlockLoader,BlockSourceReader.LongsBlockLoader,BlockStoredFieldsReader.BytesFromBytesRefsBlockLoader,BlockStoredFieldsReader.BytesFromStringsBlockLoader,BlockStoredFieldsReader.IdBlockLoader,BlockStoredFieldsReader.StoredFieldsBlockLoader,FallbackSyntheticSourceBlockLoader,SourceFieldBlockLoader
public interface BlockLoader
Interface for loading data in a block shape. Instances of this class
must be immutable and thread safe.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfaceMarker interface for block results.static interfaceBuilds block "builders" for loading data into blocks for the compute engine.static interfacestatic interfaceA builder for typed values.static interfacestatic interfacestatic classImplementation ofBlockLoader.ColumnAtATimeReaderandBlockLoader.RowStrideReaderthat always loadsnull.static classstatic interfaceA list of documents to load.static interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder(BlockLoader.BlockFactory factory, int expectedCount) TheBlockLoader.Builderfor data of this type.columnAtATimeReader(org.apache.lucene.index.LeafReaderContext context) static BlockLoaderconstantBytes(org.apache.lucene.util.BytesRef value) Load blocks with onlyvalue.default BlockLoader.Blockconvert(BlockLoader.Block block) In support of 'Union Types', we sometimes desire that Blocks loaded from source are immediately converted in some way.org.apache.lucene.index.SortedSetDocValuesordinals(org.apache.lucene.index.LeafReaderContext context) Load ordinals for the provided context.rowStrideReader(org.apache.lucene.index.LeafReaderContext context) booleanDoes this loader support loading bytes via callingordinals(org.apache.lucene.index.LeafReaderContext).
-
Field Details
-
CONSTANT_NULLS
Load blocks with only null.
-
-
Method Details
-
builder
TheBlockLoader.Builderfor data of this type. Called when loading from a multi-segment or unsorted block. -
columnAtATimeReader
BlockLoader.ColumnAtATimeReader columnAtATimeReader(org.apache.lucene.index.LeafReaderContext context) throws IOException - Throws:
IOException
-
rowStrideReader
BlockLoader.RowStrideReader rowStrideReader(org.apache.lucene.index.LeafReaderContext context) throws IOException - Throws:
IOException
-
rowStrideStoredFieldSpec
StoredFieldsSpec rowStrideStoredFieldSpec() -
supportsOrdinals
boolean supportsOrdinals()Does this loader support loading bytes via callingordinals(org.apache.lucene.index.LeafReaderContext). -
ordinals
org.apache.lucene.index.SortedSetDocValues ordinals(org.apache.lucene.index.LeafReaderContext context) throws IOException Load ordinals for the provided context.- Throws:
IOException
-
convert
In support of 'Union Types', we sometimes desire that Blocks loaded from source are immediately converted in some way. Typically, this would be a type conversion, or an encoding conversion.- Parameters:
block- original block loaded from source- Returns:
- converted block (or original if no conversion required)
-
constantBytes
Load blocks with onlyvalue.
-