@Internal public class KafkaValidator extends ConnectorDescriptorValidator
Kafka
.CONNECTOR, CONNECTOR_PROPERTY_VERSION, CONNECTOR_TYPE, CONNECTOR_VERSION
Constructor and Description |
---|
KafkaValidator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasConciseKafkaProperties(DescriptorProperties descriptorProperties) |
static String |
normalizeStartupMode(StartupMode startupMode) |
void |
validate(DescriptorProperties properties)
Performs basic validation such as completeness tests.
|
static Map<Integer,Long> |
validateAndParseSpecificOffsetsString(DescriptorProperties descriptorProperties)
Parse SpecificOffsets String to Map.
|
public static final String CONNECTOR_TYPE_VALUE_KAFKA
public static final String CONNECTOR_VERSION_VALUE_010
public static final String CONNECTOR_VERSION_VALUE_011
public static final String CONNECTOR_VERSION_VALUE_UNIVERSAL
public static final String CONNECTOR_TOPIC
public static final String CONNECTOR_STARTUP_MODE
public static final String CONNECTOR_STARTUP_MODE_VALUE_EARLIEST
public static final String CONNECTOR_STARTUP_MODE_VALUE_LATEST
public static final String CONNECTOR_STARTUP_MODE_VALUE_GROUP_OFFSETS
public static final String CONNECTOR_STARTUP_MODE_VALUE_SPECIFIC_OFFSETS
public static final String CONNECTOR_STARTUP_MODE_VALUE_TIMESTAMP
public static final String CONNECTOR_SPECIFIC_OFFSETS
public static final String CONNECTOR_SPECIFIC_OFFSETS_PARTITION
public static final String CONNECTOR_SPECIFIC_OFFSETS_OFFSET
public static final String CONNECTOR_STARTUP_TIMESTAMP_MILLIS
public static final String CONNECTOR_PROPERTIES
public static final String CONNECTOR_PROPERTIES_BOOTSTRAP_SERVER
public static final String CONNECTOR_PROPERTIES_GROUP_ID
public static final String CONNECTOR_PROPERTIES_KEY
public static final String CONNECTOR_PROPERTIES_VALUE
public static final String CONNECTOR_SINK_PARTITIONER
public static final String CONNECTOR_SINK_PARTITIONER_VALUE_FIXED
public static final String CONNECTOR_SINK_PARTITIONER_VALUE_ROUND_ROBIN
public static final String CONNECTOR_SINK_PARTITIONER_VALUE_CUSTOM
public static final String CONNECTOR_SINK_PARTITIONER_CLASS
public void validate(DescriptorProperties properties)
DescriptorValidator
validate
in interface DescriptorValidator
validate
in class ConnectorDescriptorValidator
public static String normalizeStartupMode(StartupMode startupMode)
public static Map<Integer,Long> validateAndParseSpecificOffsetsString(DescriptorProperties descriptorProperties)
SpecificOffsets String format was given as following:
connector.specific-offsets = partition:0,offset:42;partition:1,offset:300
public static boolean hasConciseKafkaProperties(DescriptorProperties descriptorProperties)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.