Module org.elasticsearch.compute
Class ValuesSourceReaderOperator
java.lang.Object
org.elasticsearch.compute.operator.AbstractPageMappingToIteratorOperator
org.elasticsearch.compute.lucene.read.ValuesSourceReaderOperator
- All Implemented Interfaces:
Closeable,AutoCloseable,Operator,org.elasticsearch.core.Releasable
Operator that extracts doc_values from a Lucene index out of pages that have been produced by
LuceneSourceOperator
and outputs them to a new column.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilds aValuesSourceReaderOperator.LoaderAndConverterfor a given shard.static interfaceEvaluator for any type conversions that must be performed on load.static interfacestatic final recordCreates a factory forValuesSourceReaderOperator.static final recordConfiguration for a field to load.protected classstatic classstatic final recordNested classes/interfaces inherited from class org.elasticsearch.compute.operator.AbstractPageMappingToIteratorOperator
AbstractPageMappingToIteratorOperator.StatusNested classes/interfaces inherited from interface org.elasticsearch.compute.operator.Operator
Operator.OperatorFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValuesSourceReaderOperator.LoaderAndConverterSingleton to load constantnulls.Fields inherited from interface org.elasticsearch.compute.operator.Operator
MIN_TARGET_PAGE_SIZE, NOT_BLOCKED, TARGET_PAGE_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionValuesSourceReaderOperator(DriverContext driverContext, long jumboBytes, List<ValuesSourceReaderOperator.FieldInfo> fields, IndexedByShardId<? extends ValuesSourceReaderOperator.ShardContext> shardContexts, boolean reuseColumnLoaders, int docChannel, double sourceReservationFactor, int docSequenceBytesRefFieldThreshold) Creates a new extractor -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()notifies the operator that it won't be used anymore (i.e.load(BlockLoader loader) Loads directly from theloader.loadAndConvert(BlockLoader loader, ValuesSourceReaderOperator.ConverterFactory converter) Loads from theloaderand then converts the values using theconverter.protected org.elasticsearch.core.ReleasableIterator<Page> Build and Iterator of results for a new page.protected ValuesSourceReaderOperatorStatusstatus(long processNanos, int pagesReceived, int pagesEmitted, long rowsReceived, long rowsEmitted) toString()Methods inherited from class org.elasticsearch.compute.operator.AbstractPageMappingToIteratorOperator
addInput, appendBlockArrays, appendBlocks, canProduceMoreDataWithoutExtraInput, finish, getOutput, isFinished, needsInput, status
-
Field Details
-
LOAD_CONSTANT_NULLS
Singleton to load constantnulls.
-
-
Constructor Details
-
ValuesSourceReaderOperator
public ValuesSourceReaderOperator(DriverContext driverContext, long jumboBytes, List<ValuesSourceReaderOperator.FieldInfo> fields, IndexedByShardId<? extends ValuesSourceReaderOperator.ShardContext> shardContexts, boolean reuseColumnLoaders, int docChannel, double sourceReservationFactor, int docSequenceBytesRefFieldThreshold) Creates a new extractor- Parameters:
fields- fields to loaddocChannel- the channel containing the shard, leaf/segment and doc id
-
-
Method Details
-
load
Loads directly from theloader. -
loadAndConvert
public static ValuesSourceReaderOperator.LoaderAndConverter loadAndConvert(BlockLoader loader, ValuesSourceReaderOperator.ConverterFactory converter) Loads from theloaderand then converts the values using theconverter. -
receive
Description copied from class:AbstractPageMappingToIteratorOperatorBuild and Iterator of results for a new page.- Specified by:
receivein classAbstractPageMappingToIteratorOperator
-
close
public void close()Description copied from interface:Operatornotifies the operator that it won't be used anymore (i.e. none of the other methods called), and its resources can be cleaned up- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceOperator- Specified by:
closein interfaceorg.elasticsearch.core.Releasable- Overrides:
closein classAbstractPageMappingToIteratorOperator
-
toString
- Specified by:
toStringin classAbstractPageMappingToIteratorOperator
-
status
protected ValuesSourceReaderOperatorStatus status(long processNanos, int pagesReceived, int pagesEmitted, long rowsReceived, long rowsEmitted) - Overrides:
statusin classAbstractPageMappingToIteratorOperator
-