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

Class ExtensionType

cpp/gdb_arrow.py:946–965  ·  view source on GitHub ↗

A arrow::ExtensionType.

Source from the content-addressed store, hash-verified

944
945
946class ExtensionType:
947 """
948 A arrow::ExtensionType.
949 """
950
951 def __init__(self, val):
952 self.val = val
953
954 @property
955 def storage_type(self):
956 return deref(self.val['storage_type_'])
957
958 def to_string(self):
959 """
960 The result of calling ToString(show_metadata=True).
961 """
962 # XXX `show_metadata` is an optional argument, but gdb doesn't allow
963 # omitting it.
964 return StdString(gdb.parse_and_eval(
965 f"{for_evaluation(self.val)}.ToString(true)"))
966
967
968class Schema:

Callers 3

to_stringMethod · 0.70
to_stringMethod · 0.70
generate_extension_caseFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected