Module org.elasticsearch.compute
Class PageConsumerOperator
java.lang.Object
org.elasticsearch.compute.operator.SinkOperator
org.elasticsearch.compute.operator.PageConsumerOperator
- All Implemented Interfaces:
Closeable,AutoCloseable,Operator,org.elasticsearch.core.Releasable
Sink operator that's useful for passing off pages to a
Consumer.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.compute.operator.SinkOperator
SinkOperator.SinkOperatorFactoryNested classes/interfaces inherited from interface org.elasticsearch.compute.operator.Operator
Operator.OperatorFactory, Operator.Status -
Field Summary
Fields inherited from interface org.elasticsearch.compute.operator.Operator
MIN_TARGET_PAGE_SIZE, NOT_BLOCKED, TARGET_PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()notifies the operator that it won't be used anymore (i.e.protected voiddoAddInput(Page page) voidfinish()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 availablebooleanwhether the given operator can accept more input pagestoString()Methods inherited from class org.elasticsearch.compute.operator.SinkOperator
addInput, getOutput
-
Constructor Details
-
PageConsumerOperator
-
-
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 -
needsInput
public boolean needsInput()Description copied from interface:Operatorwhether the given operator can accept more input pages -
doAddInput
- Specified by:
doAddInputin classSinkOperator
-
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 -
toString
-