Class SourceCommonConfig
java.lang.Object
org.apache.kafka.common.config.AbstractConfig
io.aiven.commons.kafka.config.CommonConfig
io.aiven.commons.kafka.connector.common.config.ConnectorCommonConfig
io.aiven.commons.kafka.connector.source.config.SourceCommonConfig
The common definitions for source connectors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe common source configuration definition.Nested classes/interfaces inherited from class io.aiven.commons.kafka.config.CommonConfig
io.aiven.commons.kafka.config.CommonConfig.ChangeTrackingMap -
Field Summary
Fields inherited from class org.apache.kafka.common.config.AbstractConfig
AUTOMATIC_CONFIG_PROVIDERS_PROPERTY, CONFIG_PROVIDERS_CONFIG -
Constructor Summary
ConstructorsConstructorDescriptionSourceCommonConfig(SourceCommonConfig.SourceCommonConfigDef definition, Map<String, String> originals) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the specified headers, if any, for the CSV extractor.Gets the distribution type.org.apache.kafka.connect.runtime.errors.ToleranceTypeGets the tolerance for errors.Gets the extractor defined for this source.intGets the size of the Extractor buffer if the extractor builds a buffered input stream.intGets the size of the Extractor cache if the extractor supports a cache.intGets the maximum number of records to return in a single poll.Gets the native start key for the initial file to scan.intGets the size of the ring buffer used to track read files.Gets the target topic to write messages to.booleanGets the CSV header enabled flag.Methods inherited from class io.aiven.commons.kafka.connector.common.config.ConnectorCommonConfig
fragmentPostProcess, getCompressionType, getKeyConverterSchemaRegistryUrl, getSchemaRegistryUrl, getValueConverterSchemaRegistryUrl, isKeyConverterRegistryEnabled, isSchemaRegistryEnabled, isValueConverterRegistryEnabledMethods inherited from class io.aiven.commons.kafka.config.CommonConfig
finalize, getKafkaRetryBackoffMs, getMaxTasks, getTaskId, postProcessParsedConfigMethods inherited from class org.apache.kafka.common.config.AbstractConfig
documentationOf, equals, get, getBoolean, getClass, getConfiguredInstance, getConfiguredInstance, getConfiguredInstances, getConfiguredInstances, getConfiguredInstances, getDouble, getInt, getList, getLong, getPassword, getShort, getString, hashCode, ignore, logUnused, nonInternalValues, originals, originals, originalsStrings, originalsWithPrefix, originalsWithPrefix, typeOf, unused, values, valuesWithPrefixAllOrNothing, valuesWithPrefixOverride
-
Constructor Details
-
SourceCommonConfig
public SourceCommonConfig(SourceCommonConfig.SourceCommonConfigDef definition, Map<String, String> originals) Constructor.- Parameters:
definition- the configuration definition.originals- the initial configuration data.
-
-
Method Details
-
getTargetTopic
Gets the target topic to write messages to.- Returns:
- the target topic to write messages to.
-
getErrorsTolerance
public org.apache.kafka.connect.runtime.errors.ToleranceType getErrorsTolerance()Gets the tolerance for errors.- Returns:
- the tolerance for errors.
-
getDistributionType
Gets the distribution type.- Returns:
- the distribution type.
-
getMaxPollRecords
public int getMaxPollRecords()Gets the maximum number of records to return in a single poll.- Returns:
- the maximum number of records to return in a single poll.
-
getNativeStartKey
Gets the native start key for the initial file to scan.- Returns:
- the native start key.
-
getRingBufferSize
public int getRingBufferSize()Gets the size of the ring buffer used to track read files.- Returns:
- the size of the ring buffer.
-
getExtractor
Gets the extractor defined for this source.- Returns:
- the Extractor defined for this source.
-
getExtractorBufferSize
public int getExtractorBufferSize()Gets the size of the Extractor buffer if the extractor builds a buffered input stream.- Returns:
- the size of the extractor buffer in bytes.
-
getExtractorCacheSize
public int getExtractorCacheSize()Gets the size of the Extractor cache if the extractor supports a cache.- Returns:
- the size of the extractor cache in bytes.
-
isCsvExtractorHeaderEnabled
public boolean isCsvExtractorHeaderEnabled()Gets the CSV header enabled flag.- Returns:
trueif headers should be extracted from the CSV input,falseotherwise.
-
getCsvExtractorHeader
Gets the specified headers, if any, for the CSV extractor.- Returns:
- list of headers specified for the CSV extractor.
-