pyarrow.SerializedPyObject¶
- class pyarrow.SerializedPyObject¶
Bases:
_Weakrefable
Arrow-serialized representation of Python object.
- __init__(*args, **kwargs)¶
Methods
__init__
(*args, **kwargs)deserialize
(self, ...)Convert back to Python object.
from_components
(components)Reconstruct SerializedPyObject from output of SerializedPyObject.to_components.
to_buffer
(self[, nthreads])Write serialized data as Buffer.
to_components
(self[, memory_pool])Return the decomposed dict representation of the serialized object containing a collection of Buffer objects which maximize opportunities for zero-copy.
write_to
(self, sink)Write serialized object to a sink.
Attributes
- base¶
- deserialize(self, SerializationContext context=None)¶
Convert back to Python object.
- static from_components(components)¶
Reconstruct SerializedPyObject from output of SerializedPyObject.to_components.
- to_buffer(self, nthreads=1)¶
Write serialized data as Buffer.
- to_components(self, memory_pool=None)¶
Return the decomposed dict representation of the serialized object containing a collection of Buffer objects which maximize opportunities for zero-copy.
- Parameters:
- memory_pool
MemoryPool
defaultNone
Pool to use for necessary allocations.
- Returns
- memory_pool
- total_bytes¶
- write_to(self, sink)¶
Write serialized object to a sink.