- All Known Implementing Classes:
BlockDocValuesReader.BooleansBlockLoader
,BlockDocValuesReader.BytesRefsFromBinaryBlockLoader
,BlockDocValuesReader.BytesRefsFromOrdsBlockLoader
,BlockDocValuesReader.DocValuesBlockLoader
,BlockDocValuesReader.DoublesBlockLoader
,BlockDocValuesReader.IntsBlockLoader
,BlockDocValuesReader.LongsBlockLoader
,BlockLoader.Delegating
,BlockSourceReader.BooleansBlockLoader
,BlockSourceReader.BytesRefsBlockLoader
,BlockSourceReader.DoublesBlockLoader
,BlockSourceReader.GeometriesBlockLoader
,BlockSourceReader.IntsBlockLoader
,BlockSourceReader.LongsBlockLoader
,BlockStoredFieldsReader.BytesFromBytesRefsBlockLoader
,BlockStoredFieldsReader.BytesFromStringsBlockLoader
,BlockStoredFieldsReader.IdBlockLoader
,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 interface
static interface
Marker interface for block results.static interface
Builds block "builders" for loading data into blocks for the compute engine.static interface
static interface
A builder for typed values.static interface
static interface
static class
Implementation ofBlockLoader.ColumnAtATimeReader
andBlockLoader.RowStrideReader
that always loadsnull
.static class
static interface
A list of documents to load.static interface
static interface
static interface
static interface
static interface
static interface
static interface
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(BlockLoader.BlockFactory factory, int expectedCount) TheBlockLoader.Builder
for data of this type.columnAtATimeReader
(org.apache.lucene.index.LeafReaderContext context) static BlockLoader
constantBytes
(org.apache.lucene.util.BytesRef value) Load blocks with onlyvalue
.org.apache.lucene.index.SortedSetDocValues
ordinals
(org.apache.lucene.index.LeafReaderContext context) Load ordinals for the provided context.rowStrideReader
(org.apache.lucene.index.LeafReaderContext context) boolean
Does 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.Builder
for 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
-
constantBytes
Load blocks with onlyvalue
.
-