@Namespace(value="arrow::ipc") @NoOffset @Properties(inherit=arrow.class) public class Message extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.Type |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Message(ArrowBuffer metadata,
ArrowBuffer body)
\brief Construct message, but do not validate
Use at your own risk; Message::Open has more metadata validation
|
Message(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
body_length()
\brief The expected body length according to the metadata, for
verification purposes
|
ArrowBuffer |
body()
\brief the Message body, if any
|
boolean |
Equals(Message other)
\brief Return true if message type and contents are equal
|
static boolean |
HasBody(int type) |
static boolean |
HasBody(Message.Type type)
\brief Whether a given message type needs a body.
|
Pointer |
header() |
arrow.MetadataVersion |
metadata_version()
\brief The Message metadata version
|
ArrowBuffer |
metadata()
\brief the Message metadata
|
static Status |
Open(ArrowBuffer metadata,
ArrowBuffer body,
Message out)
\brief Create and validate a Message instance from two buffers
|
static Status |
ReadFrom(ArrowBuffer metadata,
InputStream stream,
Message out)
\brief Read message body and create Message given Flatbuffer metadata
|
static Status |
ReadFrom(long offset,
ArrowBuffer metadata,
RandomAccessFile file,
Message out)
\brief Read message body from position in file, and create Message given
the Flatbuffer metadata
|
Status |
SerializeTo(OutputStream file,
IpcOptions options,
long[] output_length) |
Status |
SerializeTo(OutputStream file,
IpcOptions options,
LongBuffer output_length) |
Status |
SerializeTo(OutputStream file,
IpcOptions options,
LongPointer output_length)
\brief Write length-prefixed metadata and body to output stream
|
Message.Type |
type()
\brief The Message type
|
boolean |
Verify()
\brief Return true if the Message metadata passes Flatbuffer validation
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Message(Pointer p)
Pointer.Pointer(Pointer).public Message(@SharedPtr ArrowBuffer metadata, @SharedPtr ArrowBuffer body)
@ByVal public static Status Open(@SharedPtr ArrowBuffer metadata, @SharedPtr ArrowBuffer body, @UniquePtr Message out)
metadata - [in] a buffer containing the Flatbuffer metadatabody - [in] a buffer containing the message body, which may be nullout - [out] the created message@ByVal public static Status ReadFrom(@SharedPtr ArrowBuffer metadata, InputStream stream, @UniquePtr Message out)
metadata - [in] containing a serialized Message flatbufferstream - [in] an InputStreamout - [out] the created Message@ByVal public static Status ReadFrom(@Cast(value="const int64_t") long offset, @SharedPtr ArrowBuffer metadata, RandomAccessFile file, @UniquePtr Message out)
offset - [in] the position in the file where the message body starts.metadata - [in] containing a serialized Message flatbufferfile - [in] the seekable file interface to read fromout - [out] the created Message@Cast(value="bool") public boolean Equals(@Const @ByRef Message other)
other - another message@SharedPtr public ArrowBuffer metadata()
@SharedPtr public ArrowBuffer body()
@Cast(value="int64_t") public long body_length()
public Message.Type type()
public arrow.MetadataVersion metadata_version()
@ByVal public Status SerializeTo(OutputStream file, @Const @ByRef IpcOptions options, @Cast(value="int64_t*") LongPointer output_length)
file - [in] output stream to write tooptions - [in] IPC writing options including alignmentoutput_length - [out] the number of bytes written@ByVal public Status SerializeTo(OutputStream file, @Const @ByRef IpcOptions options, @Cast(value="int64_t*") LongBuffer output_length)
@ByVal public Status SerializeTo(OutputStream file, @Const @ByRef IpcOptions options, @Cast(value="int64_t*") long[] output_length)
@Cast(value="bool") public boolean Verify()
@Cast(value="bool") public static boolean HasBody(Message.Type type)
Copyright © 2020. All rights reserved.