Class CountCoBundleTrigger<IN1,IN2>
java.lang.Object
org.apache.flink.table.runtime.operators.bundle.trigger.CountCoBundleTrigger<IN1,IN2>
- All Implemented Interfaces:
Serializable,CoBundleTrigger<IN1,IN2>
A
CoBundleTrigger that fires once the count of elements in a bundle reaches the given
count.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexplain()voidonElement1(IN1 element) Called for every element that gets added to the bundle from the first input.voidonElement2(IN2 element) Called for every element that gets added to the bundle from the second input.voidregisterCallback(BundleTriggerCallback callback) Register a callback which will be called once this trigger decides to finish this bundle.voidreset()Reset the trigger to its initiate status.
-
Constructor Details
-
CountCoBundleTrigger
public CountCoBundleTrigger(long maxCount)
-
-
Method Details
-
registerCallback
Description copied from interface:CoBundleTriggerRegister a callback which will be called once this trigger decides to finish this bundle.- Specified by:
registerCallbackin interfaceCoBundleTrigger<IN1,IN2>
-
onElement1
Description copied from interface:CoBundleTriggerCalled for every element that gets added to the bundle from the first input. If the trigger decides to start evaluate,BundleTriggerCallback.finishBundle()should be invoked.- Specified by:
onElement1in interfaceCoBundleTrigger<IN1,IN2> - Parameters:
element- The element that arrived from the first input.- Throws:
Exception
-
onElement2
Description copied from interface:CoBundleTriggerCalled for every element that gets added to the bundle from the second input. If the trigger decides to start evaluate,BundleTriggerCallback.finishBundle()should be invoked.- Specified by:
onElement2in interfaceCoBundleTrigger<IN1,IN2> - Parameters:
element- The element that arrived from the second input.- Throws:
Exception
-
reset
public void reset()Description copied from interface:CoBundleTriggerReset the trigger to its initiate status.- Specified by:
resetin interfaceCoBundleTrigger<IN1,IN2>
-
explain
- Specified by:
explainin interfaceCoBundleTrigger<IN1,IN2>
-