use of org.apache.flink.table.runtime.operators.bundle.KeyedMapBundleOperator in project flink by apache.
the class RowTimeMiniBatchLatestChangeDeduplicateFunctionTest method createTestHarness.
private OneInputStreamOperatorTestHarness<RowData, RowData> createTestHarness(boolean generateUpdateBefore, boolean generateInsert, boolean keepLastRow) throws Exception {
RowTimeMiniBatchLatestChangeDeduplicateFunction func = new RowTimeMiniBatchLatestChangeDeduplicateFunction(inputRowType, serializer, minTtlTime.toMilliseconds(), rowTimeIndex, generateUpdateBefore, generateInsert, keepLastRow);
CountBundleTrigger trigger = new CountBundleTrigger<RowData>(miniBatchSize);
KeyedMapBundleOperator<RowData, RowData, RowData, RowData> keyedMapBundleOperator = new KeyedMapBundleOperator(func, trigger);
return createTestHarness(keyedMapBundleOperator);
}
Aggregations