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

Method to_string

cpp/gdb_arrow.py:2156–2166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2154 """
2155
2156 def to_string(self):
2157 data_type = self.val.type.template_argument(0)
2158 state_ptr = self.val['status_']['state_']
2159 if int(state_ptr) != 0:
2160 inner = self._format_error(state_ptr)
2161 else:
2162 data_ptr = self.val['storage_']['data_'].address
2163 assert data_ptr
2164 inner = data_ptr.reinterpret_cast(
2165 data_type.pointer()).dereference()
2166 return f"arrow::Result<{data_type}>({inner})"
2167
2168
2169class FieldPrinter:

Callers

nothing calls this directly

Calls 1

_format_errorMethod · 0.80

Tested by

no test coverage detected