Package io.debezium.relational
Class TableImpl
- java.lang.Object
-
- io.debezium.relational.TableImpl
-
-
Field Summary
Fields Modifier and Type Field Description private List<Column>columnDefsprivate Map<String,Column>columnsByLowercaseNameprivate StringdefaultCharsetNameprivate TableIdidprivate List<String>pkColumnNames
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Column>columns()Get the definitions for the columns in this table, in the same order in which the table defines them.ColumncolumnWithName(String name)Get the definition for the column in this table with the supplied name.StringdefaultCharsetName()Get the database-specific name of the default character set used by columns in this table.TableEditoredit()Obtain an editor that contains the same information as this table definition.booleanequals(Object obj)inthashCode()TableIdid()Get the identifier for this table.List<String>primaryKeyColumnNames()The list of column names that make up the primary key for this table.List<String>retrieveColumnNames()The list of column names that make up this table.StringtoString()voidtoString(StringBuilder sb, String prefix)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.debezium.relational.Table
filterColumns, isAutoIncremented, isGenerated, isOptional, isPrimaryKeyColumn, primaryKeyColumns
-
-
-
-
Constructor Detail
-
TableImpl
@PackagePrivate TableImpl(Table table)
-
-
Method Detail
-
primaryKeyColumnNames
public List<String> primaryKeyColumnNames()
Description copied from interface:TableThe list of column names that make up the primary key for this table.- Specified by:
primaryKeyColumnNamesin interfaceTable- Returns:
- the immutable list of column names that make up the primary key; never null but possibly empty
-
columns
public List<Column> columns()
Description copied from interface:TableGet the definitions for the columns in this table, in the same order in which the table defines them.
-
retrieveColumnNames
public List<String> retrieveColumnNames()
Description copied from interface:TableThe list of column names that make up this table.Note: If feasible, call
Table.columns()instead, e.g. if just interested in the number of columns.- Specified by:
retrieveColumnNamesin interfaceTable- Returns:
- the immutable list of column names ; never null but possibly empty
-
columnWithName
public Column columnWithName(String name)
Description copied from interface:TableGet the definition for the column in this table with the supplied name. The case of the supplied name does not matter.- Specified by:
columnWithNamein interfaceTable- Parameters:
name- the case-insensitive name of the column- Returns:
- the column definition, or null if there is no column with the given name
-
defaultCharsetName
public String defaultCharsetName()
Description copied from interface:TableGet the database-specific name of the default character set used by columns in this table.- Specified by:
defaultCharsetNamein interfaceTable- Returns:
- the database-specific character set name used by default in columns of this table, or
nullif there is no such default character set name defined on the table
-
toString
public void toString(StringBuilder sb, String prefix)
-
edit
public TableEditor edit()
Description copied from interface:TableObtain an editor that contains the same information as this table definition.
-
-