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

Method __init__

cpp/gdb_arrow.py:985–992  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 4

cast_to_concreteFunction · 0.85
derefFunction · 0.85
StdPtrVectorClass · 0.85
SchemaClass · 0.70

Tested by

no test coverage detected