Package com.zendesk.maxwell.schema
Class Table
- java.lang.Object
-
- com.zendesk.maxwell.schema.Table
-
public class Table extends Object
-
-
Method Summary
-
-
-
Method Detail
-
setTable
public void setTable(String name)
-
getStringColumns
public List<StringColumnDef> getStringColumns()
-
getName
public String getName()
-
findColumnIndex
public short findColumnIndex(String name)
-
findColumn
public ColumnDef findColumn(int index)
-
getPKIndex
public int getPKIndex()
-
getDatabase
public String getDatabase()
-
copy
public Table copy()
-
rename
public void rename(String tableName)
-
fullName
public String fullName()
-
setDefaultColumnCharsets
public void setDefaultColumnCharsets()
-
addColumn
public void addColumn(int index, ColumnDef definition)
-
addColumn
public void addColumn(ColumnDef definition)
-
removeColumn
public void removeColumn(int idx)
-
renameColumn
public void renameColumn(int idx, String name) throws InvalidSchemaError
- Throws:
InvalidSchemaError
-
replaceColumn
public void replaceColumn(int idx, ColumnDef definition) throws InvalidSchemaError
- Throws:
InvalidSchemaError
-
changeColumn
public void changeColumn(int idx, ColumnPosition position, ColumnDef definition, List<DeferredPositionUpdate> deferred) throws InvalidSchemaError
- Throws:
InvalidSchemaError
-
moveColumn
public void moveColumn(String name, ColumnPosition position) throws InvalidSchemaError
- Throws:
InvalidSchemaError
-
setDatabase
public void setDatabase(String database)
-
getCharset
public String getCharset()
-
setCharset
public void setCharset(String charset)
-
getPKString
public String getPKString()
-
-