Class SerializerOutputStream
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
- Author:
- Chris Cranford
-
Field Summary
FieldsFields inherited from class io.debezium.connector.oracle.logminer.processor.ehcache.serialization.AbstractSerializerStream
NULL_VALUE_SENTINEL, UNAVAILABLE_VALUE_SENTINEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected String[]objectArrayToStringArray(Object[] values) Convert an array of object values to a string array for serialization.voidwriteBoolean(boolean value) Writes a boolean value to the stream.voidwriteInstant(Instant instant) Writes anInstantto the stream.voidwriteInt(int value) Write an integer value to the stream.voidwriteObjectArray(Object[] values) Write an object array to the stream.voidWrites an Oracle SCN value to the stream.voidwriteString(String value) Write a string value to the stream.protected voidwriteStringArray(String[] values) Writes a string array to the stream.voidwriteTableId(TableId tableId) Writes aTableIdto the stream.
-
Field Details
-
delegate
-
-
Constructor Details
-
SerializerOutputStream
-
-
Method Details
-
close
- Throws:
Exception
-
writeScn
Writes an Oracle SCN value to the stream.- Parameters:
scn- the SCN value- Throws:
IOException- when a write operation fails
-
writeTableId
Writes aTableIdto the stream.- Parameters:
tableId- the table id, should not benull- Throws:
IOException- when a write operation fails
-
writeInstant
Writes anInstantto the stream.- Parameters:
instant- the instant to be written, should not benull- Throws:
IOException- when a write operation fails
-
writeBoolean
Writes a boolean value to the stream.- Parameters:
value- the boolean value to write- Throws:
IOException- when a write operation fails
-
writeInt
Write an integer value to the stream.- Parameters:
value- the integer value to write- Throws:
IOException- when a write operation fails
-
writeString
Write a string value to the stream.- Parameters:
value- the string value to write, can benull- Throws:
IOException- when a write operation fails
-
writeObjectArray
Write an object array to the stream.- Parameters:
values- the object array to write, should not benull- Throws:
IOException- when a write operation fails
-
writeStringArray
Writes a string array to the stream.- Parameters:
values- the string array to write, should not benull- Throws:
IOException- when a write operation fails
-
objectArrayToStringArray
Convert an array of object values to a string array for serialization. This is typically used when preparing theLogMinerDmlEntryvalues array for serialization.- Parameters:
values- the dml entry's new or old object values array- Returns:
- string array of values prepared for serialization
-