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

Method to_string

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

Source from the content-addressed store, hash-verified

1430 """
1431
1432 def to_string(self):
1433 size = self.type['byte_width_']
1434 bufptr = BufferPtr(SharedPtr(self.val['value']).get())
1435 if bufptr.data is None:
1436 return f"{self._format_type()} of size {size}, <unallocated>"
1437 nullness = '' if self.is_valid else 'null with '
1438 return (f"{self._format_type()} of size {size}, "
1439 f"{nullness}value {self._format_buf(bufptr)}")
1440
1441
1442class DictionaryScalarPrinter(ScalarPrinter):

Callers

nothing calls this directly

Calls 5

BufferPtrClass · 0.85
SharedPtrClass · 0.85
_format_bufMethod · 0.80
getMethod · 0.45
_format_typeMethod · 0.45

Tested by

no test coverage detected