Class RowTimeDeduplicateRecordsCombiner.Factory
java.lang.Object
org.apache.flink.table.runtime.operators.deduplicate.window.combines.RowTimeDeduplicateRecordsCombiner.Factory
- All Implemented Interfaces:
Serializable,RecordsCombiner.Factory
- Enclosing class:
- RowTimeDeduplicateRecordsCombiner
public static final class RowTimeDeduplicateRecordsCombiner.Factory
extends Object
implements RecordsCombiner.Factory
Factory to create
RowTimeDeduplicateRecordsCombiner.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFactory(org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> recordSerializer, int rowtimeIndex, boolean keepLastRow) -
Method Summary
Modifier and TypeMethodDescriptioncreateRecordsCombiner(org.apache.flink.api.common.functions.RuntimeContext runtimeContext, WindowTimerService<Long> timerService, org.apache.flink.runtime.state.KeyedStateBackend<org.apache.flink.table.data.RowData> stateBackend, WindowState<Long> windowState, boolean isEventTime) Creates aRecordsCombinerthat can combine buffered data into states.
-
Constructor Details
-
Factory
public Factory(org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> recordSerializer, int rowtimeIndex, boolean keepLastRow)
-
-
Method Details
-
createRecordsCombiner
public RecordsCombiner createRecordsCombiner(org.apache.flink.api.common.functions.RuntimeContext runtimeContext, WindowTimerService<Long> timerService, org.apache.flink.runtime.state.KeyedStateBackend<org.apache.flink.table.data.RowData> stateBackend, WindowState<Long> windowState, boolean isEventTime) throws Exception Description copied from interface:RecordsCombiner.FactoryCreates aRecordsCombinerthat can combine buffered data into states.- Specified by:
createRecordsCombinerin interfaceRecordsCombiner.Factory- Parameters:
runtimeContext- the currentRuntimeContexttimerService- the service to register event-time and processing-time timersstateBackend- the state backend to accessing stateswindowState- the window state to flush buffered data into.isEventTime- indicates whether the operator works in event-time or processing-time mode, used for register corresponding timers.- Throws:
Exception
-