java.lang.Object
io.debezium.connector.oracle.logminer.processor.ehcache.serialization.AbstractSerializerStream
io.debezium.connector.oracle.logminer.processor.ehcache.serialization.SerializerOutputStream
All Implemented Interfaces:
AutoCloseable

public class SerializerOutputStream extends AbstractSerializerStream
Author:
Chris Cranford
  • Field Details

  • Constructor Details

    • SerializerOutputStream

      public SerializerOutputStream(OutputStream outputStream)
  • Method Details

    • close

      public void close() throws Exception
      Throws:
      Exception
    • writeScn

      public void writeScn(Scn scn) throws IOException
      Writes an Oracle SCN value to the stream.
      Parameters:
      scn - the SCN value
      Throws:
      IOException - when a write operation fails
    • writeTableId

      public void writeTableId(TableId tableId) throws IOException
      Writes a TableId to the stream.
      Parameters:
      tableId - the table id, should not be null
      Throws:
      IOException - when a write operation fails
    • writeInstant

      public void writeInstant(Instant instant) throws IOException
      Writes an Instant to the stream.
      Parameters:
      instant - the instant to be written, should not be null
      Throws:
      IOException - when a write operation fails
    • writeBoolean

      public void writeBoolean(boolean value) throws IOException
      Writes a boolean value to the stream.
      Parameters:
      value - the boolean value to write
      Throws:
      IOException - when a write operation fails
    • writeInt

      public void writeInt(int value) throws IOException
      Write an integer value to the stream.
      Parameters:
      value - the integer value to write
      Throws:
      IOException - when a write operation fails
    • writeString

      public void writeString(String value) throws IOException
      Write a string value to the stream.
      Parameters:
      value - the string value to write, can be null
      Throws:
      IOException - when a write operation fails
    • writeObjectArray

      public void writeObjectArray(Object[] values) throws IOException
      Write an object array to the stream.
      Parameters:
      values - the object array to write, should not be null
      Throws:
      IOException - when a write operation fails
    • writeStringArray

      protected void writeStringArray(String[] values) throws IOException
      Writes a string array to the stream.
      Parameters:
      values - the string array to write, should not be null
      Throws:
      IOException - when a write operation fails
    • objectArrayToStringArray

      protected String[] objectArrayToStringArray(Object[] values)
      Convert an array of object values to a string array for serialization. This is typically used when preparing the LogMinerDmlEntry values array for serialization.
      Parameters:
      values - the dml entry's new or old object values array
      Returns:
      string array of values prepared for serialization