Class RecordBatchSerDe
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.data.RecordBatchSerDe
-
@Deprecated public class RecordBatchSerDe extends Object
Deprecated.ArrowRecordBatchSerDeV3
should be used insteadused to serialize and deserialize ArrowRecordBatch.
-
-
Constructor Summary
Constructors Constructor Description RecordBatchSerDe(BlockAllocator allocator)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.arrow.vector.ipc.message.ArrowRecordBatch
deserialize(byte[] in)
Deprecated.Attempts to deserialize the provided byte[] into an ArrowRecordBatch.void
serialize(org.apache.arrow.vector.ipc.message.ArrowRecordBatch batch, OutputStream out)
Deprecated.Serialized the provided ArrowRecordBatch to the provided OutputStream and closes the batch once it is fully written to the OutputStream.
-
-
-
Constructor Detail
-
RecordBatchSerDe
public RecordBatchSerDe(BlockAllocator allocator)
Deprecated.
-
-
Method Detail
-
serialize
public void serialize(org.apache.arrow.vector.ipc.message.ArrowRecordBatch batch, OutputStream out) throws IOException
Deprecated.Serialized the provided ArrowRecordBatch to the provided OutputStream and closes the batch once it is fully written to the OutputStream.- Parameters:
batch
- The ArrowRecordBatch to serialize.out
- The OutputStream to write to.- Throws:
IOException
-
deserialize
public org.apache.arrow.vector.ipc.message.ArrowRecordBatch deserialize(byte[] in) throws IOException
Deprecated.Attempts to deserialize the provided byte[] into an ArrowRecordBatch.- Parameters:
in
- The byte[] that is expected to contain a serialized ArrowRecordBatch.- Returns:
- The resulting ArrowRecordBatch if the byte[] contains a valid ArrowRecordBatch.
- Throws:
IOException
-
-