Package stream.nebula.operators
Class WatermarkStrategyOperator
- java.lang.Object
-
- stream.nebula.operators.Operator
-
- stream.nebula.operators.WatermarkStrategyOperator
-
public class WatermarkStrategyOperator extends Operator
Operator
class that corresponds toWatermarkAssignerLogicalOperatorNode
in the C++ API.Joins and window do not produce results unless the children contain
WatermarkAssignerLogicalOperatorNode
. When submitting queries using protobuf, we need to replicate the behavior of the C++ Query API and add these operators. However, they are currently not in the Java query API.
-
-
Field Summary
-
Fields inherited from class stream.nebula.operators.Operator
childOperator
-
-
Constructor Summary
Constructors Constructor Description WatermarkStrategyOperator(@NonNull Operator childOperator)
Create a new operator and set its child.WatermarkStrategyOperator(@NonNull Operator childOperator, @Nullable WindowDefinition windowDefinition)
Create a new operator and set its child.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WindowDefinition
getWindowDefinition()
void
setWindowDefinition(WindowDefinition windowDefinition)
-
Methods inherited from class stream.nebula.operators.Operator
getChildOperator
-
-
-
-
Constructor Detail
-
WatermarkStrategyOperator
public WatermarkStrategyOperator(@NonNull Operator childOperator)
Create a new operator and set its child. This constructor leaves the window definition uninitialized, so it must be set later withsetWindowDefinition(stream.nebula.operators.window.WindowDefinition)
before the operator is deserialized.- Parameters:
childOperator
- The child operator in a singly linked operator chain.
-
WatermarkStrategyOperator
public WatermarkStrategyOperator(@NonNull Operator childOperator, @Nullable WindowDefinition windowDefinition)
Create a new operator and set its child.- Parameters:
childOperator
- The child operator in a singly linked operator chain.windowDefinition
- The window definition for the watermark strategy. If it is null, it must be set later withsetWindowDefinition(stream.nebula.operators.window.WindowDefinition)
.
-
-
Method Detail
-
getWindowDefinition
public WindowDefinition getWindowDefinition()
-
setWindowDefinition
public void setWindowDefinition(WindowDefinition windowDefinition)
-
-