Skip to content

arrow

Classes:

ArrowInt32ArrayLength

ArrowInt32ArrayLength(values: list[AST])

Bases: DataType

Build an Arrow int32 array using the IRX runtime, then return its length. attributes: values: type: list[astx.AST] type_: type: astx.Int32

Methods:

Source code in src/irx/astx/arrow.py
25
26
27
28
29
30
31
32
33
34
def __init__(self, values: list[astx.AST]) -> None:
    """
    title: Initialize ArrowInt32ArrayLength.
    parameters:
      values:
        type: list[astx.AST]
    """
    super().__init__()
    self.values = values
    self.type_ = astx.Int32()

get_struct

get_struct(simplified: bool = False) -> ReprStruct
Source code in src/irx/astx/arrow.py
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
def get_struct(self, simplified: bool = False) -> astx.base.ReprStruct:
    """
    title: Return the structured representation of the Arrow helper.
    parameters:
      simplified:
        type: bool
    returns:
      type: astx.base.ReprStruct
    """
    key = "ArrowInt32ArrayLength"
    value = cast(
        astx.base.ReprStruct,
        [item.get_struct(simplified) for item in self.values],
    )
    return self._prepare_struct(key, value, simplified)