Class ChunkColumnValues
java.lang.Object
io.debezium.connector.oracle.xstream.ChunkColumnValues
A simple wrapper class around a collection of
ChunkColumnValues.- Author:
- Chris Cranford
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(oracle.streams.ChunkColumnValue chunkColumnValue) Adds a chunk column value instance to this collection.private intcalculateChunkSize(oracle.streams.ChunkColumnValue chunkColumnValue) Calculates the size of the individual column chunk.byte[]intGets the chunk type of the managedChunkColumnValueinstances.booleanisEmpty()
-
Field Details
-
values
-
size
private long size
-
-
Constructor Details
-
ChunkColumnValues
public ChunkColumnValues()
-
-
Method Details
-
getChunkType
public int getChunkType()Gets the chunk type of the managedChunkColumnValueinstances.- Returns:
- the chunk type of the values
- Throws:
DebeziumException- if the method is called before adding at least one ChunkColumnValue.
-
isEmpty
public boolean isEmpty()- Returns:
trueif there are no values,falseif at least one value has been added.
-
add
public void add(oracle.streams.ChunkColumnValue chunkColumnValue) Adds a chunk column value instance to this collection.- Parameters:
chunkColumnValue- the chunk column value to be added
-
getStringValue
- Returns:
- the chunk data as a string, may be
nullif the length of the data is zero. - Throws:
SQLException- if there is a database exception accessing the raw chunk value
-
getXmlValue
- Returns:
- the chunk data as XML, may be
nullif the length of the data is zero. - Throws:
SQLException- if there is a database exception accessing the raw chunk value
-
getByteArray
- Returns:
- the chunk data as a byte array, may be
nullif the length of the data is zero. - Throws:
SQLException- if there is a database exception accessing the raw chunk value
-
calculateChunkSize
private int calculateChunkSize(oracle.streams.ChunkColumnValue chunkColumnValue) Calculates the size of the individual column chunk.- Parameters:
chunkColumnValue- a specific chunk of column data- Returns:
- the size of the column chunk data
- Throws:
DebeziumException- if there was a problem resolving the size of the column chunk data
-