PhysBuffer
struct PhysBufferDecoded values still in their physical Parquet representation.
Implements Copyable, Defaultable, Movable
- Fields
kind: Intwidth: Intcount: Intbytes: List[UInt8]offsets: List[Int]
__init__
def __init__(out self) def __init__(out self, kind: Int, width: Int) bool_at
def bool_at(self, i: Int) -> Bool append_bool
def append_bool(mut self, v: Bool) append_bytes
def append_bytes(mut self, src: Span[UInt8]) Append one PK_VAR value.
reserve_values
def reserve_values(mut self, count: Int, bytes: Int) Size the buffers for count more values and bytes more bytes, so that a chunk of many pages does not grow its buffer log-many times.
extend
def extend(mut self, other: Self) Append every value of other, which must have the same shape.
value_span
def value_span(self, i: Int) -> Span[UInt8, origin_of(self.bytes)] The bytes of value i — PK_VAR or PK_FIXED only.