| Package | Description |
|---|---|
| io.debezium.jdbc | |
| io.debezium.relational | |
| io.debezium.relational.ddl | |
| io.debezium.relational.mapping |
| Modifier and Type | Method and Description |
|---|---|
static void |
JdbcConnection.columnsFor(ResultSet resultSet,
Consumer<Column> consumer)
Determine the column definitions for the supplied result set and add each column to the specified consumer.
|
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ColumnImpl |
| Modifier and Type | Field and Description |
|---|---|
private List<Column> |
TableImpl.columnDefs |
private Map<String,Column> |
TableImpl.columnsByLowercaseName |
private LinkedHashMap<String,Column> |
TableEditorImpl.sortedColumns |
| Modifier and Type | Method and Description |
|---|---|
Column |
TableImpl.columnWithName(String name) |
Column |
TableEditorImpl.columnWithName(String name) |
Column |
TableEditor.columnWithName(String name)
Get the definition for the column in this table with the supplied name.
|
Column |
Table.columnWithName(String name)
Get the definition for the column in this table with the supplied name.
|
Column |
ColumnEditorImpl.create() |
Column |
ColumnEditor.create()
Obtain an immutable column definition representing the current state of this editor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Column> |
TableImpl.columns() |
List<Column> |
TableEditorImpl.columns() |
List<Column> |
TableEditor.columns()
Get the definitions for the columns in this table.
|
List<Column> |
Table.columns()
Get the definitions for the columns in this table, in the same order in which the table defines them.
|
static Map<TableId,Predicate<Column>> |
ColumnId.filter(String columnBlacklist)
Create the map of predicate functions that specify which columns are to be included.
|
default List<Column> |
Table.filterColumns(Predicate<Column> predicate)
Utility to obtain a copy of a list of the columns that satisfy the specified predicate.
|
default List<Column> |
Table.nonPrimaryKeyColumns()
Get the columns that are not included in the primary key for this table.
|
default List<Column> |
Table.primaryKeyColumns()
Get the columns that make up the primary key for this table.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
TableEditorImpl.add(Column defn) |
default TableEditor |
TableEditor.addColumn(Column column)
Add one columns to this table, regardless of the
position of the supplied
columns. |
TableEditor |
TableEditorImpl.addColumns(Column... columns) |
TableEditor |
TableEditor.addColumns(Column... columns)
Add one or more columns to this table, regardless of the
position of the supplied
columns. |
protected void |
TableSchemaBuilder.addField(org.apache.kafka.connect.data.SchemaBuilder builder,
Column column,
ColumnMapper mapper)
Add to the supplied
SchemaBuilder a field for the column with the given information. |
protected org.apache.kafka.connect.data.SchemaBuilder |
TableSchemaBuilder.addOtherField(Column column,
ColumnMapper mapper)
Return a
SchemaBuilder for a field for the column with the given information. |
int |
ColumnEditorImpl.compareTo(Column that) |
default int |
Column.compareTo(Column that) |
protected Object |
TableSchemaBuilder.convertBigInt(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.INTEGER. |
protected Object |
TableSchemaBuilder.convertBinary(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.BLOB, Types.BINARY,
Types.VARBINARY, Types.LONGVARBINARY. |
protected Object |
TableSchemaBuilder.convertBit(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.BIT. |
protected Object |
TableSchemaBuilder.convertBoolean(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.BOOLEAN. |
protected Object |
TableSchemaBuilder.convertDate(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.DATE. |
protected Object |
TableSchemaBuilder.convertDecimal(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.NUMERIC. |
protected Object |
TableSchemaBuilder.convertDouble(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.DOUBLE. |
protected Object |
TableSchemaBuilder.convertFloat(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.FLOAT. |
protected Object |
TableSchemaBuilder.convertInteger(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.INTEGER. |
protected Object |
TableSchemaBuilder.convertNumeric(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.NUMERIC. |
protected Object |
TableSchemaBuilder.convertReal(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.REAL. |
protected Object |
TableSchemaBuilder.convertRowId(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.ROWID. |
protected Object |
TableSchemaBuilder.convertSmallInt(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.SMALLINT. |
protected Object |
TableSchemaBuilder.convertString(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.CHAR, Types.VARCHAR,
Types.LONGVARCHAR, Types.CLOB, Types.NCHAR, Types.NVARCHAR, Types.LONGNVARCHAR,
Types.NCLOB, Types.DATALINK, and Types.SQLXML. |
protected Object |
TableSchemaBuilder.convertTime(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.TIME. |
protected Object |
TableSchemaBuilder.convertTimestamp(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.TIMESTAMP. |
protected Object |
TableSchemaBuilder.convertTimestampWithZone(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.TIMESTAMP_WITH_TIMEZONE. |
protected Object |
TableSchemaBuilder.convertTimeWithZone(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.TIME_WITH_TIMEZONE. |
protected Object |
TableSchemaBuilder.convertTinyInt(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Converts a value object for an expected JDBC type of
Types.TINYINT. |
protected ValueConverter |
TableSchemaBuilder.createValueConverterFor(Column column,
org.apache.kafka.connect.data.Field fieldDefn)
Create a
ValueConverter that can be used to convert row values for the given column into the Kafka Connect value
object described by the field definition. |
protected Object |
TableSchemaBuilder.handleUnknownData(Column column,
org.apache.kafka.connect.data.Field fieldDefn,
Object data)
Convert a value object from the specified column to the value type described by the specified Kafka Connect
field. |
TableEditor |
TableEditorImpl.setColumns(Column... columns) |
TableEditor |
TableEditor.setColumns(Column... columns)
Set this table's column definitions.
|
| Modifier and Type | Method and Description |
|---|---|
TableEditor |
TableEditorImpl.addColumns(Iterable<Column> columns) |
TableEditor |
TableEditor.addColumns(Iterable<Column> columns)
Add one or more columns to the end of this table's list of columns, regardless of the
position of the supplied columns. |
protected ValueConverter[] |
TableSchemaBuilder.convertersForColumns(org.apache.kafka.connect.data.Schema schema,
TableId tableId,
List<Column> columns,
Predicate<ColumnId> filter,
ColumnMappers mappers)
Obtain the array of converters for each column in a row.
|
protected Function<Object[],Object> |
TableSchemaBuilder.createKeyGenerator(org.apache.kafka.connect.data.Schema schema,
TableId columnSetName,
List<Column> columns)
Creates the function that produces a Kafka Connect key object for a row of data.
|
protected Function<Object[],org.apache.kafka.connect.data.Struct> |
TableSchemaBuilder.createValueGenerator(org.apache.kafka.connect.data.Schema schema,
TableId tableId,
List<Column> columns,
Predicate<ColumnId> filter,
ColumnMappers mappers)
Creates the function that produces a Kafka Connect value object for a row of data.
|
protected org.apache.kafka.connect.data.Field[] |
TableSchemaBuilder.fieldsForColumns(org.apache.kafka.connect.data.Schema schema,
List<Column> columns) |
default List<String> |
Table.filterColumnNames(Predicate<Column> predicate)
Utility to obtain a copy of a list of the names of those columns that satisfy the specified predicate.
|
default List<Column> |
Table.filterColumns(Predicate<Column> predicate)
Utility to obtain a copy of a list of the columns that satisfy the specified predicate.
|
protected int[] |
TableSchemaBuilder.indexesForColumns(List<Column> columns) |
Table |
Tables.overwriteTable(TableId tableId,
List<Column> columnDefs,
List<String> primaryKeyColumnNames)
Add or update the definition for the identified table.
|
void |
Tables.TableChanger.rewrite(List<Column> columnDefinitions,
List<String> primaryKeyNames) |
TableEditor |
TableEditorImpl.setColumns(Iterable<Column> columns) |
TableEditor |
TableEditor.setColumns(Iterable<Column> columns)
Set this table's column definitions.
|
| Constructor and Description |
|---|
TableImpl(TableId id,
List<Column> sortedColumns,
List<String> pkColumnNames) |
| Modifier and Type | Method and Description |
|---|---|
protected Column |
DdlParser.createColumnFromConstant(String columnName,
String constantValue) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Column> |
DdlParser.parseColumnsInSelectClause(TokenStream.Marker start)
Parse the column information in the SELECT clause.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TruncateStrings.alterFieldSchema(Column column,
org.apache.kafka.connect.data.SchemaBuilder schemaBuilder) |
void |
MaskStrings.alterFieldSchema(Column column,
org.apache.kafka.connect.data.SchemaBuilder schemaBuilder) |
default void |
ColumnMapper.alterFieldSchema(Column column,
org.apache.kafka.connect.data.SchemaBuilder schemaBuilder)
Optionally annotate the schema with properties to better capture the mapping behavior.
|
ValueConverter |
TruncateStrings.create(Column column) |
ValueConverter |
MaskStrings.create(Column column) |
ValueConverter |
ColumnMapper.create(Column column)
Create for the given column a function that maps values.
|
protected boolean |
TruncateStrings.isTruncationPossible(Column column) |
ColumnMapper |
ColumnMappers.mapperFor(TableId tableId,
Column column)
Get the value mapping function for the given column.
|
ValueConverter |
ColumnMappers.mappingConverterFor(Table table,
Column column)
Get the value mapping function for the given column.
|
ValueConverter |
ColumnMappers.mappingConverterFor(TableId tableId,
Column column)
Get the value mapping function for the given column.
|
Copyright © 2016 JBoss by Red Hat. All rights reserved.