pyarrow.ipc.Message#
- class pyarrow.ipc.Message#
Bases:
pyarrow.lib._Weakrefable
Container for an Arrow IPC message with metadata and optional body
- __init__(*args, **kwargs)#
Methods
__init__
(*args, **kwargs)equals
(self, Message other)Returns True if the message contents (metadata and body) are identical
serialize
(self[, alignment, memory_pool])Write message as encapsulated IPC message
serialize_to
(self, NativeFile sink[, ...])Write message to generic OutputStream
Attributes
- body#
- equals(self, Message other)#
Returns True if the message contents (metadata and body) are identical
- metadata#
- metadata_version#
- serialize(self, alignment=8, memory_pool=None)#
Write message as encapsulated IPC message
- Parameters
- alignment
int
, default 8 Byte alignment for metadata and body
- memory_pool
MemoryPool
, defaultNone
Uses default memory pool if not specified
- alignment
- Returns
- serialized
Buffer
- serialized
- serialize_to(self, NativeFile sink, alignment=8, memory_pool=None)#
Write message to generic OutputStream
- Parameters
- sink
NativeFile
- alignment
int
, default 8 Byte alignment for metadata and body
- memory_pool
MemoryPool
, defaultNone
Uses default memory pool if not specified
- sink
- type#