public class KafkaOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
KafkaOptions.StartupOptions
Kafka startup options.
|
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTIES_PREFIX |
static ConfigOption<String> |
PROPS_BOOTSTRAP_SERVERS |
static ConfigOption<String> |
PROPS_GROUP_ID |
static ConfigOption<String> |
SCAN_STARTUP_MODE |
static String |
SCAN_STARTUP_MODE_VALUE_EARLIEST |
static String |
SCAN_STARTUP_MODE_VALUE_GROUP_OFFSETS |
static String |
SCAN_STARTUP_MODE_VALUE_LATEST |
static String |
SCAN_STARTUP_MODE_VALUE_SPECIFIC_OFFSETS |
static String |
SCAN_STARTUP_MODE_VALUE_TIMESTAMP |
static ConfigOption<String> |
SCAN_STARTUP_SPECIFIC_OFFSETS |
static ConfigOption<Long> |
SCAN_STARTUP_TIMESTAMP_MILLIS |
static ConfigOption<String> |
SINK_PARTITIONER |
static String |
SINK_PARTITIONER_VALUE_FIXED |
static String |
SINK_PARTITIONER_VALUE_ROUND_ROBIN |
static ConfigOption<String> |
TOPIC |
Modifier and Type | Method and Description |
---|---|
static Optional<FlinkKafkaPartitioner<RowData>> |
getFlinkKafkaPartitioner(ReadableConfig tableOptions,
ClassLoader classLoader)
The partitioner can be either "fixed", "round-robin" or a customized partitioner full class
name.
|
static Properties |
getKafkaProperties(Map<String,String> tableOptions) |
static KafkaOptions.StartupOptions |
getStartupOptions(ReadableConfig tableOptions,
String topic) |
static Map<Integer,Long> |
parseSpecificOffsets(String specificOffsetsStr,
String optionKey)
Parses SpecificOffsets String to Map.
|
static void |
validateTableOptions(ReadableConfig tableOptions) |
public static final ConfigOption<String> TOPIC
public static final ConfigOption<String> PROPS_BOOTSTRAP_SERVERS
public static final ConfigOption<String> PROPS_GROUP_ID
public static final ConfigOption<String> SCAN_STARTUP_MODE
public static final ConfigOption<String> SCAN_STARTUP_SPECIFIC_OFFSETS
public static final ConfigOption<Long> SCAN_STARTUP_TIMESTAMP_MILLIS
public static final ConfigOption<String> SINK_PARTITIONER
public static final String SCAN_STARTUP_MODE_VALUE_EARLIEST
public static final String SCAN_STARTUP_MODE_VALUE_LATEST
public static final String SCAN_STARTUP_MODE_VALUE_GROUP_OFFSETS
public static final String SCAN_STARTUP_MODE_VALUE_SPECIFIC_OFFSETS
public static final String SCAN_STARTUP_MODE_VALUE_TIMESTAMP
public static final String SINK_PARTITIONER_VALUE_FIXED
public static final String SINK_PARTITIONER_VALUE_ROUND_ROBIN
public static final String PROPERTIES_PREFIX
public static void validateTableOptions(ReadableConfig tableOptions)
public static KafkaOptions.StartupOptions getStartupOptions(ReadableConfig tableOptions, String topic)
public static Properties getKafkaProperties(Map<String,String> tableOptions)
public static Optional<FlinkKafkaPartitioner<RowData>> getFlinkKafkaPartitioner(ReadableConfig tableOptions, ClassLoader classLoader)
public static Map<Integer,Long> parseSpecificOffsets(String specificOffsetsStr, String optionKey)
SpecificOffsets String format was given as following:
scan.startup.specific-offsets = partition:0,offset:42;partition:1,offset:300
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.