Enum WatermarkHandlingResult
- java.lang.Object
-
- java.lang.Enum<WatermarkHandlingResult>
-
- org.apache.flink.api.common.watermark.WatermarkHandlingResult
-
- All Implemented Interfaces:
Serializable,Comparable<WatermarkHandlingResult>
@Experimental public enum WatermarkHandlingResult extends Enum<WatermarkHandlingResult>
This class defines watermark handling result for user-defined process function.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WatermarkHandlingResultvalueOf(String name)Returns the enum constant of this type with the specified name.static WatermarkHandlingResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PEEK
public static final WatermarkHandlingResult PEEK
Process function only peek the watermark, and it's framework's responsibility to handle this watermark.
-
POLL
public static final WatermarkHandlingResult POLL
This watermark should be sent to downstream by process function itself. The framework does no additional processing.
-
-
Method Detail
-
values
public static WatermarkHandlingResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WatermarkHandlingResult c : WatermarkHandlingResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WatermarkHandlingResult valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-