java.lang.Object
org.elasticsearch.compute.operator.MvExpandOperator
- All Implemented Interfaces:
Closeable,AutoCloseable,Operator,org.elasticsearch.core.Releasable
"Expands" multivalued blocks by duplicating all the other columns for each value.
[0, 1, 2] | 2 | "foo"
becomes
0 | 2 | "foo"
1 | 2 | "foo"
2 | 2 | "foo"
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final classNested classes/interfaces inherited from interface org.elasticsearch.compute.operator.Operator
Operator.OperatorFactory -
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 TypeMethodDescriptionfinal voidadds an input page to the operator.voidclose()notifies the operator that it won't be used anymore (i.e.final voidfinish()notifies the operator that it won't receive any more input pagesfinal Pagereturns non-null if output page available.final booleanwhether the operator has finished processing all input pages and made the corresponding output pages availablefinal booleanwhether the given operator can accept more input pagesfinal MvExpandOperator.Statusstatus()The status of the operator.toString()
-
Constructor Details
-
MvExpandOperator
public MvExpandOperator(int channel, int pageSize)
-
-
Method Details
-
getOutput
Description copied from interface:Operatorreturns non-null if output page available. Only called when isFinished() == false -
needsInput
public final boolean needsInput()Description copied from interface:Operatorwhether the given operator can accept more input pages- Specified by:
needsInputin interfaceOperator
-
addInput
Description copied from interface:Operatoradds an input page to the operator. only called when needsInput() == true and isFinished() == false -
finish
public final void finish()Description copied from interface:Operatornotifies the operator that it won't receive any more input pages -
isFinished
public final boolean isFinished()Description copied from interface:Operatorwhether the operator has finished processing all input pages and made the corresponding output pages available- Specified by:
isFinishedin interfaceOperator
-
status
Description copied from interface:OperatorThe status of the operator. -
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
-