Class SimpleDdlParserListener

java.lang.Object
io.debezium.relational.ddl.DdlChanges
io.debezium.relational.ddl.SimpleDdlParserListener
All Implemented Interfaces:
DdlParserListener

public class SimpleDdlParserListener extends DdlChanges implements DdlParserListener
Author:
Randall Hauch
  • Field Details

  • Constructor Details

    • SimpleDdlParserListener

      public SimpleDdlParserListener()
  • Method Details

    • handle

      public void handle(DdlParserListener.Event event)
      Specified by:
      handle in interface DdlParserListener
      Overrides:
      handle in class DdlChanges
    • total

      public int total()
      Get the total number of events that have been handled by this listener.
      Returns:
      the total number of events
    • remaining

      public int remaining()
      Get the number of events currently held by this listener that have yet to be checked.
      Returns:
      the number of remaining events
    • assertNoMoreEvents

      public void assertNoMoreEvents()
      Assert that there is no next event.
    • assertNext

      Perform assertions on the next event seen by this listener.
      Returns:
      the next event, or null if there is no event
    • forEach

      public void forEach(Consumer<DdlParserListener.Event> eventConsumer)
      Perform an operation on each of the events.
      Parameters:
      eventConsumer - the event consumer function; may not be null