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

Class RecordBatch

cpp/gdb_arrow.py:980–996  ·  view source on GitHub ↗

A arrow::RecordBatch.

Source from the content-addressed store, hash-verified

978
979
980class RecordBatch:
981 """
982 A arrow::RecordBatch.
983 """
984
985 def __init__(self, val):
986 # XXX this relies on RecordBatch always being a SimpleRecordBatch
987 # under the hood. What if users create their own RecordBatch
988 # implementation?
989 self.val = cast_to_concrete(val,
990 gdb.lookup_type("arrow::SimpleRecordBatch"))
991 self.schema = Schema(deref(self.val['schema_']))
992 self.columns = StdPtrVector(self.val['columns_'])
993
994 @property
995 def num_rows(self):
996 return self.val['num_rows_']
997
998
999class Table:

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected