public class PropagateSourceTypeToSchemaParameter extends Object implements ColumnMapper
TYPE_NAME_PARAMETER_KEY and TYPE_LENGTH_PARAMETER_KEY schema
parameter keys.| Modifier and Type | Field and Description |
|---|---|
private static String |
TYPE_LENGTH_PARAMETER_KEY |
private static String |
TYPE_NAME_PARAMETER_KEY |
| Constructor and Description |
|---|
PropagateSourceTypeToSchemaParameter() |
| Modifier and Type | Method and Description |
|---|---|
void |
alterFieldSchema(Column column,
org.apache.kafka.connect.data.SchemaBuilder schemaBuilder)
Optionally annotate the schema with properties to better capture the mapping behavior.
|
ValueConverter |
create(Column column)
Create for the given column a function that maps values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeprivate static final String TYPE_NAME_PARAMETER_KEY
private static final String TYPE_LENGTH_PARAMETER_KEY
public PropagateSourceTypeToSchemaParameter()
public ValueConverter create(Column column)
ColumnMappercreate in interface ColumnMappercolumn - the column description; never nullpublic void alterFieldSchema(Column column, org.apache.kafka.connect.data.SchemaBuilder schemaBuilder)
ColumnMapperalterFieldSchema in interface ColumnMappercolumn - the column definition; never nullschemaBuilder - the builder for the Field's schema; never nullCopyright © 2018 JBoss by Red Hat. All rights reserved.