A arrow::Table.
| 1012 | |
| 1013 | |
| 1014 | class 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 | |
| 1032 | type_reprs = { |