Package org.apache.beam.sdk.io.kafka
Enum KafkaTimestampType
- java.lang.Object
-
- java.lang.Enum<KafkaTimestampType>
-
- org.apache.beam.sdk.io.kafka.KafkaTimestampType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<KafkaTimestampType>
public enum KafkaTimestampType extends java.lang.Enum<KafkaTimestampType>
This is a copy of Kafka'sTimestampType. Included here in order to support older Kafka versions (0.9.x).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_TIMELOG_APPEND_TIMENO_TIMESTAMP_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KafkaTimestampTypeforOrdinal(int ordinal)java.lang.StringtoString()static KafkaTimestampTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static KafkaTimestampType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_TIMESTAMP_TYPE
public static final KafkaTimestampType NO_TIMESTAMP_TYPE
-
CREATE_TIME
public static final KafkaTimestampType CREATE_TIME
-
LOG_APPEND_TIME
public static final KafkaTimestampType LOG_APPEND_TIME
-
-
Method Detail
-
values
public static KafkaTimestampType[] 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 (KafkaTimestampType c : KafkaTimestampType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KafkaTimestampType 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
-
forOrdinal
public static KafkaTimestampType forOrdinal(int ordinal)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<KafkaTimestampType>
-
-