Interface OpFusionContext
public interface OpFusionContext
A OpFusionContext contains information about the context in which
OpFusionCodegenSpec
needed to do operator fusion codegen.-
Method Summary
Modifier and TypeMethodDescriptionGenerate Java source code to do clean work forOpFusionCodegenSpeccorresponding input, delegate toOpFusionCodegenSpecGenerator.endInputConsume()method.voidendInputProduce(CodeGeneratorContext codegenCtx) Generate Java source code to do clean work for operator corresponding input, delegate toOpFusionCodegenSpecGenerator.endInputProduce(CodeGeneratorContext)method.Return the inputOpFusionContextof thisOpFusionCodegenSpecGenerator.doubleReturn the managed memory fraction of thisOpFusionCodegenSpecGeneratorneeded during all fusion operators.org.apache.flink.table.types.logical.RowTypeReturn the output type of currentOpFusionCodegenSpecGenerator.default StringprocessConsume(List<GeneratedExpression> outputVars) processConsume(List<GeneratedExpression> outputVars, String row) Consume the generated columns or row from currentOpFusionCodegenSpec, delegate toOpFusionCodegenSpecGenerator.processConsume(List, String)()} method.voidprocessProduce(CodeGeneratorContext codegenCtx) Generate Java source code to process the rows from operator corresponding input, delegate toOpFusionCodegenSpecGenerator.processProduce(CodeGeneratorContext)method.
-
Method Details
-
getOutputType
org.apache.flink.table.types.logical.RowType getOutputType()Return the output type of currentOpFusionCodegenSpecGenerator. -
getManagedMemoryFraction
double getManagedMemoryFraction()Return the managed memory fraction of thisOpFusionCodegenSpecGeneratorneeded during all fusion operators. -
getInputFusionContexts
List<OpFusionContext> getInputFusionContexts()Return the inputOpFusionContextof thisOpFusionCodegenSpecGenerator. -
processProduce
void processProduce(CodeGeneratorContext codegenCtx) Generate Java source code to process the rows from operator corresponding input, delegate toOpFusionCodegenSpecGenerator.processProduce(CodeGeneratorContext)method. -
endInputProduce
void endInputProduce(CodeGeneratorContext codegenCtx) Generate Java source code to do clean work for operator corresponding input, delegate toOpFusionCodegenSpecGenerator.endInputProduce(CodeGeneratorContext)method. -
processConsume
-
processConsume
Consume the generated columns or row from currentOpFusionCodegenSpec, delegate toOpFusionCodegenSpecGenerator.processConsume(List, String)()} method.Note that `outputVars` and `row` can't both be null.
-
endInputConsume
String endInputConsume()Generate Java source code to do clean work forOpFusionCodegenSpeccorresponding input, delegate toOpFusionCodegenSpecGenerator.endInputConsume()method.
-