public interface MessageReader
| Modifier and Type | Method and Description |
|---|---|
long |
bytesRead()
Return the current number of bytes that have been read.
|
void |
close()
Close any resource opened by the message reader, not including message body allocations.
|
ArrowBuf |
readMessageBody(Message message,
BufferAllocator allocator)
When a message is followed by a body of data, read that data into an ArrowBuf.
|
Message |
readNextMessage()
Read the next message in the sequence.
|
Message readNextMessage() throws IOException
IOExceptionArrowBuf readMessageBody(Message message, BufferAllocator allocator) throws IOException
message - Read message that is followed by a body of dataallocator - BufferAllocator to allocate memory for body dataIOExceptionlong bytesRead()
void close()
throws IOException
IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.