Enum KafkaConnectorOptions.ScanStartupMode
- java.lang.Object
-
- java.lang.Enum<KafkaConnectorOptions.ScanStartupMode>
-
- org.apache.flink.streaming.connectors.kafka.table.KafkaConnectorOptions.ScanStartupMode
-
- All Implemented Interfaces:
Serializable,Comparable<KafkaConnectorOptions.ScanStartupMode>,org.apache.flink.configuration.DescribedEnum
- Enclosing class:
- KafkaConnectorOptions
public static enum KafkaConnectorOptions.ScanStartupMode extends Enum<KafkaConnectorOptions.ScanStartupMode> implements org.apache.flink.configuration.DescribedEnum
Startup mode for the Kafka consumer, seeKafkaConnectorOptions.SCAN_STARTUP_MODE.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EARLIEST_OFFSETGROUP_OFFSETSLATEST_OFFSETSPECIFIC_OFFSETSTIMESTAMP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.configuration.description.InlineElementgetDescription()StringtoString()static KafkaConnectorOptions.ScanStartupModevalueOf(String name)Returns the enum constant of this type with the specified name.static KafkaConnectorOptions.ScanStartupMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EARLIEST_OFFSET
public static final KafkaConnectorOptions.ScanStartupMode EARLIEST_OFFSET
-
LATEST_OFFSET
public static final KafkaConnectorOptions.ScanStartupMode LATEST_OFFSET
-
GROUP_OFFSETS
public static final KafkaConnectorOptions.ScanStartupMode GROUP_OFFSETS
-
TIMESTAMP
public static final KafkaConnectorOptions.ScanStartupMode TIMESTAMP
-
SPECIFIC_OFFSETS
public static final KafkaConnectorOptions.ScanStartupMode SPECIFIC_OFFSETS
-
-
Method Detail
-
values
public static KafkaConnectorOptions.ScanStartupMode[] 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 (KafkaConnectorOptions.ScanStartupMode c : KafkaConnectorOptions.ScanStartupMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KafkaConnectorOptions.ScanStartupMode 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<KafkaConnectorOptions.ScanStartupMode>
-
getDescription
public org.apache.flink.configuration.description.InlineElement getDescription()
- Specified by:
getDescriptionin interfaceorg.apache.flink.configuration.DescribedEnum
-
-