Package org.apache.beam.sdk.testing
Enum TestStream.EventType
- java.lang.Object
-
- java.lang.Enum<TestStream.EventType>
-
- org.apache.beam.sdk.testing.TestStream.EventType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TestStream.EventType>
- Enclosing class:
- TestStream<T>
public static enum TestStream.EventType extends java.lang.Enum<TestStream.EventType>
The types ofTestStream.Event
that are supported byTestStream
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ELEMENT
PROCESSING_TIME
WATERMARK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TestStream.EventType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TestStream.EventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ELEMENT
public static final TestStream.EventType ELEMENT
-
WATERMARK
public static final TestStream.EventType WATERMARK
-
PROCESSING_TIME
public static final TestStream.EventType PROCESSING_TIME
-
-
Method Detail
-
values
public static TestStream.EventType[] 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 (TestStream.EventType c : TestStream.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TestStream.EventType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-