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

Method to_string

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

Source from the content-addressed store, hash-verified

2171 """
2172
2173 def to_string(self):
2174 data_type = self.val.type.template_argument(0)
2175 state_ptr = self.val['status_']['state_']
2176 if int(state_ptr) != 0:
2177 inner = self._format_error(state_ptr)
2178 else:
2179 data_ptr = self.val['storage_']['data_'].address
2180 assert data_ptr
2181 inner = data_ptr.reinterpret_cast(
2182 data_type.pointer()).dereference()
2183 return f"arrow::Result<{data_type}>({inner})"
2184
2185
2186class FieldPrinter:

Callers

nothing calls this directly

Calls 1

_format_errorMethod · 0.80

Tested by

no test coverage detected