public enum KafkaTimestampType extends java.lang.Enum<KafkaTimestampType>
TimestampType
. Included here in
order to support older Kafka versions (0.9.x).Enum Constant and Description |
---|
CREATE_TIME |
LOG_APPEND_TIME |
NO_TIMESTAMP_TYPE |
Modifier and Type | Method and Description |
---|---|
static KafkaTimestampType |
forOrdinal(int ordinal) |
java.lang.String |
toString() |
static KafkaTimestampType |
valueOf(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.
|
public static final KafkaTimestampType NO_TIMESTAMP_TYPE
public static final KafkaTimestampType CREATE_TIME
public static final KafkaTimestampType LOG_APPEND_TIME
public static KafkaTimestampType[] values()
for (KafkaTimestampType c : KafkaTimestampType.values()) System.out.println(c);
public static KafkaTimestampType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static KafkaTimestampType forOrdinal(int ordinal)
public java.lang.String toString()
toString
in class java.lang.Enum<KafkaTimestampType>