Module org.elasticsearch.compute
Class LuceneSourceOperator
java.lang.Object
org.elasticsearch.compute.operator.SourceOperator
org.elasticsearch.compute.lucene.query.LuceneOperator
org.elasticsearch.compute.lucene.query.LuceneSourceOperator
- All Implemented Interfaces:
Closeable,AutoCloseable,Operator,Releasable
- Direct Known Subclasses:
TimeSeriesSourceOperator
Source operator that incrementally runs Lucene searches
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.compute.lucene.query.LuceneOperator
LuceneOperator.StatusNested classes/interfaces inherited from class org.elasticsearch.compute.operator.SourceOperator
SourceOperator.ShardLoad, SourceOperator.SourceOperatorFactoryNested classes/interfaces inherited from interface org.elasticsearch.compute.operator.Operator
Operator.OperatorFactory -
Field Summary
Fields inherited from class org.elasticsearch.compute.lucene.query.LuceneOperator
blockFactory, currentSlice, NO_LIMIT, refCounteds, SMALL_INDEX_BOUNDARYFields inherited from interface org.elasticsearch.compute.operator.Operator
MIN_TARGET_PAGE_SIZE, NOT_BLOCKED, TARGET_PAGE_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionLuceneSourceOperator(IndexedByShardId<? extends RefCounted> refCounteds, BlockFactory blockFactory, int maxPageSize, LuceneSliceQueue sliceQueue, int limit, Limiter limiter, boolean needsScore, LongSupplier directoryBytesRead) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidbuildMetadataBlocks(Block[] blocks, int offset, int currentPagePos) protected voidvoidfinish()notifies the operator that it won't receive any more input pagesbooleanwhether the operator has finished processing all input pages and made the corresponding output pages availableprotected intMethods inherited from class org.elasticsearch.compute.lucene.query.LuceneOperator
close, getOutput, getSliceQueue, isBlocked, shardLoadDelta, status, toStringMethods inherited from class org.elasticsearch.compute.operator.SourceOperator
addInput, canProduceMoreDataWithoutExtraInput, needsInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.compute.operator.Operator
tryPromote
-
Constructor Details
-
LuceneSourceOperator
public LuceneSourceOperator(IndexedByShardId<? extends RefCounted> refCounteds, BlockFactory blockFactory, int maxPageSize, LuceneSliceQueue sliceQueue, int limit, Limiter limiter, boolean needsScore, LongSupplier directoryBytesRead)
-
-
Method Details
-
isFinished
public boolean isFinished()Description copied from interface:Operatorwhether the operator has finished processing all input pages and made the corresponding output pages available -
finish
public void finish()Description copied from interface:Operatornotifies the operator that it won't receive any more input pages -
getCheckedOutput
- Specified by:
getCheckedOutputin classLuceneOperator- Throws:
IOException
-
numMetadataBlocks
protected int numMetadataBlocks() -
buildMetadataBlocks
-
additionalClose
public void additionalClose()- Overrides:
additionalClosein classLuceneOperator
-
describe
- Specified by:
describein classLuceneOperator
-