@Namespace(value="arrow::ipc") @NoOffset @Properties(inherit=arrow.class) public class Message extends Pointer
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
|
KeyValueMetadata |
custom_metadata()
\brief Custom metadata serialized in metadata Flatbuffer.
|
boolean |
Equals(Message other)
\brief Return true if message type and contents are equal
|
static boolean |
HasBody(arrow.MessageType type)
\brief Whether a given message type needs a body.
|
static boolean |
HasBody(int type) |
Pointer |
header() |
arrow.MetadataVersion |
metadata_version()
\brief The Message metadata version
|
ArrowBuffer |
metadata()
\brief the Message metadata
|
static MessageUniqueResult |
Open(ArrowBuffer metadata,
ArrowBuffer body)
\brief Create and validate a Message instance from two buffers
|
static MessageUniqueResult |
ReadFrom(ArrowBuffer metadata,
InputStream stream)
\brief Read message body and create Message given Flatbuffer metadata
|
static MessageUniqueResult |
ReadFrom(long offset,
ArrowBuffer metadata,
RandomAccessFile file)
\brief Read message body from position in file, and create Message given
the Flatbuffer metadata
|
Status |
SerializeTo(OutputStream file,
IpcWriteOptions options,
long[] output_length) |
Status |
SerializeTo(OutputStream file,
IpcWriteOptions options,
LongBuffer output_length) |
Status |
SerializeTo(OutputStream file,
IpcWriteOptions options,
LongPointer output_length)
\brief Write length-prefixed metadata and body to output stream
|
arrow.MessageType |
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, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Message(Pointer p)
Pointer(Pointer).public Message(@SharedPtr ArrowBuffer metadata, @SharedPtr ArrowBuffer body)
@ByVal public static MessageUniqueResult Open(@SharedPtr ArrowBuffer metadata, @SharedPtr ArrowBuffer body)
metadata - [in] a buffer containing the Flatbuffer metadatabody - [in] a buffer containing the message body, which may be null@ByVal public static MessageUniqueResult ReadFrom(@SharedPtr ArrowBuffer metadata, InputStream stream)
metadata - [in] containing a serialized Message flatbufferstream - [in] an InputStream@ByVal public static MessageUniqueResult ReadFrom(@Cast(value="const int64_t") long offset, @SharedPtr ArrowBuffer metadata, RandomAccessFile file)
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 from@Cast(value="bool") public boolean Equals(@Const @ByRef Message other)
other - another message@SharedPtr public ArrowBuffer metadata()
@SharedPtr @Cast(value={"const arrow::KeyValueMetadata*","std::shared_ptr<const arrow::KeyValueMetadata>"}) public KeyValueMetadata custom_metadata()
@SharedPtr public ArrowBuffer body()
@Cast(value="int64_t") public long body_length()
public arrow.MessageType type()
public arrow.MetadataVersion metadata_version()
@ByVal public Status SerializeTo(OutputStream file, @Const @ByRef IpcWriteOptions 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 IpcWriteOptions options, @Cast(value="int64_t*") LongBuffer output_length)
@ByVal public Status SerializeTo(OutputStream file, @Const @ByRef IpcWriteOptions options, @Cast(value="int64_t*") long[] output_length)
@Cast(value="bool") public boolean Verify()
@Cast(value="bool") public static boolean HasBody(arrow.MessageType type)
Copyright © 2021. All rights reserved.