MCPcopy Create free account
hub / github.com/apache/arrow / Table

Class Table

cpp/gdb_arrow.py:1014–1029  ·  view source on GitHub ↗

A arrow::Table.

Source from the content-addressed store, hash-verified

1012
1013
1014class Table:
1015 """
1016 A arrow::Table.
1017 """
1018
1019 def __init__(self, val):
1020 # XXX this relies on Table always being a SimpleTable under the hood.
1021 # What if users create their own Table implementation?
1022 self.val = cast_to_concrete(val,
1023 gdb.lookup_type("arrow::SimpleTable"))
1024 self.schema = Schema(deref(self.val['schema_']))
1025 self.columns = StdPtrVector(self.val['columns_'])
1026
1027 @property
1028 def num_rows(self):
1029 return self.val['num_rows_']
1030
1031
1032type_reprs = {

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected