Package io.debezium.relational.ddl
Class DdlParserListener.TableEvent
- java.lang.Object
-
- io.debezium.relational.ddl.DdlParserListener.Event
-
- io.debezium.relational.ddl.DdlParserListener.TableEvent
-
- Direct Known Subclasses:
DdlParserListener.TableAlteredEvent
,DdlParserListener.TableCreatedEvent
,DdlParserListener.TableDroppedEvent
,DdlParserListener.TableTruncatedEvent
- Enclosing interface:
- DdlParserListener
@Immutable public abstract static class DdlParserListener.TableEvent extends DdlParserListener.Event
The base class for all table-related events.
-
-
Constructor Summary
Constructors Constructor Description TableEvent(DdlParserListener.EventType type, TableId tableId, String ddlStatement, boolean isView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isView()
Determine whether the target of the event is a view rather than a table.TableId
tableId()
Get the identifier of the primary table affected by this event.String
toString()
-
Methods inherited from class io.debezium.relational.ddl.DdlParserListener.Event
statement, type
-
-
-
-
Field Detail
-
tableId
private final TableId tableId
-
isView
private final boolean isView
-
-
Constructor Detail
-
TableEvent
public TableEvent(DdlParserListener.EventType type, TableId tableId, String ddlStatement, boolean isView)
-
-
Method Detail
-
tableId
public TableId tableId()
Get the identifier of the primary table affected by this event.- Returns:
- the table identifier; never null
-
isView
public boolean isView()
Determine whether the target of the event is a view rather than a table.- Returns:
true
if the target is a view, orfalse
if the target is a table
-
-