API reference
python:irx:irx.record_batch.RecordBatchSchema
class RecordBatchSchema
RecordBatchSchema()
Source: packages/irx/src/irx/record_batch.py:632
RecordBatchSchema.
Attributes
-
_handle — Type: ctypes.c_void_p
-
_lib — Type: ctypes.CDLL
-
_released — Type: bool
-
_col_types — Type: list[IrxColumnType]
-
_elem_types — Type: list[Optional[IrxColumnType]]
-
_struct_fields — Type: list[Optional[list[tuple[str, IrxColumnType]]]]
Methods
-
__del__ — Release the schema when the object is garbage collected.
-
__init__ — Create a new Arrow schema handle.
-
_raw — Return the underlying native handle.
-
add_field — add_field.
-
add_list_field — Add a list column with the given fixed-width element type.
-
add_struct_field — Add a struct column with the given named fixed-width fields.
-
clone — Clone a recursive schema including metadata and type parameters.
-
from_arrow — Import a recursive PyArrow schema through the Arrow C Data ABI.
-
release — Release the underlying schema handle.
-
to_arrow — Export an independently owned recursive PyArrow schema.
Properties
- num_fields — Return the number of schema fields.