Class TransformOperator
- java.lang.Object
-
- org.apache.pinot.query.runtime.operator.MultiStageOperator
-
- org.apache.pinot.query.runtime.operator.TransformOperator
-
- All Implemented Interfaces:
AutoCloseable,Operator<TransferableBlock>
public class TransformOperator extends MultiStageOperator
This basicTransformOperatorimplement basic transformations. This operator performs three kinds of transform - InputRef transform, which reads from certain input column based on column index - Literal transform, which outputs literal value - Function transform, which runs a function on function operands. Function operands and be any of 3 the transform. Note: Function transform only runs functions from v1 engine scalar function factory, which only does argument count and canonicalized function name matching (lower case).
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.query.runtime.operator.MultiStageOperator
_context, _opChainStats, _operatorId
-
-
Constructor Summary
Constructors Constructor Description TransformOperator(OpChainExecutionContext context, MultiStageOperator upstreamOperator, DataSchema resultSchema, List<RexExpression> transforms, DataSchema upstreamDataSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MultiStageOperator>getChildOperators()protected TransferableBlockgetNextBlock()StringtoExplainString()-
Methods inherited from class org.apache.pinot.query.runtime.operator.MultiStageOperator
cancel, close, getOperatorId, nextBlock, shouldCollectStats
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.core.common.Operator
explainPlan, getExecutionStatistics, getIndexSegment, prepareForExplainPlan
-
-
-
-
Constructor Detail
-
TransformOperator
public TransformOperator(OpChainExecutionContext context, MultiStageOperator upstreamOperator, DataSchema resultSchema, List<RexExpression> transforms, DataSchema upstreamDataSchema)
-
-
Method Detail
-
getChildOperators
public List<MultiStageOperator> getChildOperators()
- Specified by:
getChildOperatorsin interfaceOperator<TransferableBlock>- Overrides:
getChildOperatorsin classMultiStageOperator
-
toExplainString
@Nullable public String toExplainString()
-
getNextBlock
protected TransferableBlock getNextBlock()
- Specified by:
getNextBlockin classMultiStageOperator
-
-