Package io.debezium.relational
Class TableImpl
- java.lang.Object
-
- io.debezium.relational.TableImpl
-
-
Field Summary
Fields Modifier and Type Field Description private List<Column>
columnDefs
private Map<String,Column>
columnsByLowercaseName
private String
comment
private String
defaultCharsetName
private TableId
id
private 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.Column
columnWithName(String name)
Get the definition for the column in this table with the supplied name.String
comment()
Get the comment of the table.String
defaultCharsetName()
Get the database-specific name of the default character set used by columns in this table.TableEditor
edit()
Obtain an editor that contains the same information as this table definition.boolean
equals(Object obj)
int
hashCode()
TableId
id()
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.String
toString()
void
toString(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:Table
The list of column names that make up the primary key for this table.- Specified by:
primaryKeyColumnNames
in 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:Table
Get 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:Table
The 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:
retrieveColumnNames
in interfaceTable
- Returns:
- the immutable list of column names ; never null but possibly empty
-
columnWithName
public Column columnWithName(String name)
Description copied from interface:Table
Get the definition for the column in this table with the supplied name. The case of the supplied name does not matter.- Specified by:
columnWithName
in 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:Table
Get the database-specific name of the default character set used by columns in this table.- Specified by:
defaultCharsetName
in interfaceTable
- Returns:
- the database-specific character set name used by default in columns of this table, or
null
if there is no such default character set name defined on the table
-
comment
public String comment()
Description copied from interface:Table
Get the comment of the table.
-
toString
public void toString(StringBuilder sb, String prefix)
-
edit
public TableEditor edit()
Description copied from interface:Table
Obtain an editor that contains the same information as this table definition.
-
-