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 class
TableChanges.TableChange
static interface
TableChanges.TableChangesSerializer<T>
The interface that defines conversion ofTableChanges
into a serialized format for persistent storage or delivering as a message.static class
TableChanges.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 TableChanges
alter(Table table)
TableChanges
create(Table table)
TableChanges
drop(Table table)
boolean
equals(Object obj)
int
hashCode()
Iterator<TableChanges.TableChange>
iterator()
String
toString()
-
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:
iterator
in interfaceIterable<TableChanges.TableChange>
-
-