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

Class RecordBatch

cpp/gdb_arrow.py:995–1011  ·  view source on GitHub ↗

A arrow::RecordBatch.

Source from the content-addressed store, hash-verified

993
994
995class RecordBatch:
996 """
997 A arrow::RecordBatch.
998 """
999
1000 def __init__(self, val):
1001 # XXX this relies on RecordBatch always being a SimpleRecordBatch
1002 # under the hood. What if users create their own RecordBatch
1003 # implementation?
1004 self.val = cast_to_concrete(val,
1005 gdb.lookup_type("arrow::SimpleRecordBatch"))
1006 self.schema = Schema(deref(self.val['schema_']))
1007 self.columns = StdPtrVector(self.val['columns_'])
1008
1009 @property
1010 def num_rows(self):
1011 return self.val['num_rows_']
1012
1013
1014class Table:

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected