pyarrow.MemoryPool

class pyarrow.MemoryPool

Bases: object

Base class for memory allocation.

Besides tracking its number of allocated bytes, a memory pool also takes care of the required 64-byte alignment for Arrow data.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

bytes_allocated(self) Return the number of bytes that are currently allocated from this memory pool.
max_memory(self) Return the peak memory allocation in this memory pool.
bytes_allocated(self)

Return the number of bytes that are currently allocated from this memory pool.

max_memory(self)

Return the peak memory allocation in this memory pool. This can be an approximate number in multi-threaded applications.

None is returned if the pool implementation doesn’t know how to compute this number.