@PublicEvolving public enum WatermarkEmitStrategy extends Enum<WatermarkEmitStrategy>
Enum Constant and Description |
---|
ON_EVENT
Emit watermark for every event.
|
ON_PERIODIC
Emit watermark periodically. the period is configured by
PipelineOptions.AUTO_WATERMARK_INTERVAL |
Modifier and Type | Method and Description |
---|---|
String |
getAlias() |
boolean |
isOnEvent() |
boolean |
isOnPeriodic() |
String |
toString() |
static WatermarkEmitStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WatermarkEmitStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WatermarkEmitStrategy ON_EVENT
public static final WatermarkEmitStrategy ON_PERIODIC
PipelineOptions.AUTO_WATERMARK_INTERVAL
public static WatermarkEmitStrategy[] values()
for (WatermarkEmitStrategy c : WatermarkEmitStrategy.values()) System.out.println(c);
public static WatermarkEmitStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getAlias()
public boolean isOnEvent()
public boolean isOnPeriodic()
public String toString()
toString
in class Enum<WatermarkEmitStrategy>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.