use of org.apache.flink.table.runtime.typeutils.RowDataSerializer in project flink by apache.
the class SlidingOverFrame method open.
@Override
public void open(ExecutionContext ctx) throws Exception {
this.inputSer = new RowDataSerializer(inputType);
this.valueSer = new RowDataSerializer(valueType);
ClassLoader cl = ctx.getRuntimeContext().getUserCodeClassLoader();
processor = aggsHandleFunction.newInstance(cl);
processor.open(new PerKeyStateDataViewStore(ctx.getRuntimeContext()));
buffer = new ArrayDeque<>();
this.aggsHandleFunction = null;
}
use of org.apache.flink.table.runtime.typeutils.RowDataSerializer in project flink by apache.
the class UnboundedOverWindowFrame method open.
@Override
public void open(ExecutionContext ctx) throws Exception {
ClassLoader cl = ctx.getRuntimeContext().getUserCodeClassLoader();
processor = aggsHandleFunction.newInstance(cl);
processor.open(new PerKeyStateDataViewStore(ctx.getRuntimeContext()));
this.aggsHandleFunction = null;
this.valueSer = new RowDataSerializer(valueType.getChildren().toArray(new LogicalType[0]));
}
Aggregations