Package io.debezium.relational.history
Class TableChanges
- java.lang.Object
-
- io.debezium.relational.history.TableChanges
-
- All Implemented Interfaces:
Iterable<TableChanges.TableChange>
public class TableChanges extends Object implements Iterable<TableChanges.TableChange>
An abstract representation of one or more changes to the structure to the tables of a relational database. Used within a schema history as an alternative to storing and re-parsing DB-specific DDL statements.- Author:
- Gunnar Morling
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTableChanges.TableChangestatic interfaceTableChanges.TableChangesSerializer<T>The interface that defines conversion ofTableChangesinto a serialized format for persistent storage or delivering as a message.static classTableChanges.TableChangeType
-
Field Summary
Fields Modifier and Type Field Description private List<TableChanges.TableChange>changes
-
Constructor Summary
Constructors Constructor Description TableChanges()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableChangesalter(Table table)TableChangescreate(Table table)TableChangesdrop(Table table)booleanequals(Object obj)inthashCode()Iterator<TableChanges.TableChange>iterator()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
changes
private final List<TableChanges.TableChange> changes
-
-
Method Detail
-
create
public TableChanges create(Table table)
-
alter
public TableChanges alter(Table table)
-
drop
public TableChanges drop(Table table)
-
iterator
public Iterator<TableChanges.TableChange> iterator()
- Specified by:
iteratorin interfaceIterable<TableChanges.TableChange>
-
-