Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class BlockSourceReader.DoublesBlockLoader
java.lang.Object
org.elasticsearch.index.mapper.BlockSourceReader.DoublesBlockLoader
- All Implemented Interfaces:
BlockLoader
- Enclosing class:
BlockSourceReader
Load
doubles from _source.-
Nested Class Summary
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 -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDoublesBlockLoader(ValueFetcher fetcher, BlockSourceReader.LeafIteratorLookup lookup) -
Method Summary
Modifier and TypeMethodDescriptionbuilder(BlockLoader.BlockFactory factory, int expectedCount) TheBlockLoader.Builderfor data of this type.final org.apache.lucene.util.IOFunction<CircuitBreaker, BlockLoader.ColumnAtATimeReader> columnAtATimeReader(org.apache.lucene.index.LeafReaderContext context) Build a column-at-a-time reader.protected Stringname()final org.apache.lucene.index.SortedSetDocValuesordinals(org.apache.lucene.index.LeafReaderContext context) Load ordinals for the provided context.rowStrideReader(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context) Build a row-by-row reader.rowStrideReader(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context, org.apache.lucene.search.DocIdSetIterator iter) final StoredFieldsSpecWhatstoredfields are needed by this reader.final booleanDoes this loader support loading bytes via callingBlockLoader.ordinals(org.apache.lucene.index.LeafReaderContext).final StringtoString()
-
Field Details
-
fetcher
-
-
Constructor Details
-
DoublesBlockLoader
-
-
Method Details
-
builder
Description copied from interface:BlockLoaderTheBlockLoader.Builderfor data of this type. Called when loading from a multi-segment or unsorted block. -
rowStrideReader
public BlockLoader.RowStrideReader rowStrideReader(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context, org.apache.lucene.search.DocIdSetIterator iter) -
name
-
columnAtATimeReader
public final org.apache.lucene.util.IOFunction<CircuitBreaker,BlockLoader.ColumnAtATimeReader> columnAtATimeReader(org.apache.lucene.index.LeafReaderContext context) Description copied from interface:BlockLoaderBuild a column-at-a-time reader. May returnnullif the underlying storage needs to be loaded row-by-row. Callers should try this first, only falling back toBlockLoader.rowStrideReader(org.elasticsearch.common.breaker.CircuitBreaker, org.apache.lucene.index.LeafReaderContext)if this returnsnull. If this returns null thenBlockLoader.rowStrideReader(org.elasticsearch.common.breaker.CircuitBreaker, org.apache.lucene.index.LeafReaderContext)may not.- Specified by:
columnAtATimeReaderin interfaceBlockLoader
-
rowStrideStoredFieldSpec
Description copied from interface:BlockLoaderWhatstoredfields are needed by this reader.- Specified by:
rowStrideStoredFieldSpecin interfaceBlockLoader
-
supportsOrdinals
public final boolean supportsOrdinals()Description copied from interface:BlockLoaderDoes this loader support loading bytes via callingBlockLoader.ordinals(org.apache.lucene.index.LeafReaderContext).- Specified by:
supportsOrdinalsin interfaceBlockLoader
-
ordinals
public final org.apache.lucene.index.SortedSetDocValues ordinals(org.apache.lucene.index.LeafReaderContext context) Description copied from interface:BlockLoaderLoad ordinals for the provided context.- Specified by:
ordinalsin interfaceBlockLoader
-
rowStrideReader
public final BlockLoader.RowStrideReader rowStrideReader(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context) throws IOException Description copied from interface:BlockLoaderBuild a row-by-row reader. May returnnullif the underlying storage prefers to be loaded column-at-a-time. Callers should tryBlockLoader.columnAtATimeReader(org.apache.lucene.index.LeafReaderContext)first, only falling back to this ifBlockLoader.columnAtATimeReader(org.apache.lucene.index.LeafReaderContext)returns null. This may not return null ifBlockLoader.columnAtATimeReader(org.apache.lucene.index.LeafReaderContext)does.- Specified by:
rowStrideReaderin interfaceBlockLoader- Throws:
IOException
-
toString
-