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

public class ParserUtils extends Object
Utility helper methods for the Oracle LogMiner DML parsing classes.
Author:
Chris Cranford
  • Constructor Details

    • ParserUtils

      public ParserUtils()
  • Method Details

    • setColumnUnavailableValues

      public static void setColumnUnavailableValues(Object[] columnValues, Table table)
      Set the unavailable value placeholder in the column value array for null LOB-based columns.
      Parameters:
      columnValues - the column values array, should not be null
      table - the relational model table, should not be null
    • getColumnUnavailableValue

      public static Object getColumnUnavailableValue(Object value, Column column)
      Resolve the column value for a given column value and column instance.

      If the column value is null and the column is an LOB or XML-based column, this method will resolve the final column value as OracleValueConverters.UNAVAILABLE_VALUE, a value that represents that the column should be emitted with the unavailable value placeholder.

      If the column value is not null or is not an LOB-based column, the method will simply return the column's value as-is without modification.

      Parameters:
      value - the column's value, may be null
      column - the relational model's column instance, should not be null
      Returns:
      the resolved column's value