Class SelectLobParser

java.lang.Object
io.debezium.connector.oracle.logminer.parser.SelectLobParser

@NotThreadSafe public class SelectLobParser extends Object
Simple text-based parser implementation for Oracle LogMiner SEL_LOB_LOCATOR Redo SQL.
Author:
Chris Cranford
  • Field Details

  • Constructor Details

    • SelectLobParser

      public SelectLobParser()
  • Method Details

    • parse

      public LogMinerDmlEntry parse(String sql, Table table)
      Parse the supplied SEL_LOB_LOCATOR event redo SQL statement.
      Parameters:
      sql - SQL statement expression to be parsed
      table - the relational table
      Returns:
      instance of LogMinerDmlEntry for the parsed fragment.
    • getColumnName

      public String getColumnName()
      Returns:
      the column name that the SEL_LOB_LOCATOR event is modifying
    • isBinary

      public boolean isBinary()
      Returns:
      true if the column being modified is a BLOB; otherwise false indicates a CLOB data type.
    • parseQuotedValue

      private int parseQuotedValue(String sql, int index, Consumer<String> collector)
    • parseColumnValue

      private int parseColumnValue(String sql, int index, int columnIndex)
    • parseWhere

      private int parseWhere(String sql, int index, Table table)
    • parseOperator

      private int parseOperator(String sql, int index)
    • reset

      private void reset(Table table)