Class RecordBatchSerDe

    • 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