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

Method children

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

Source from the content-addressed store, hash-verified

1764 return "array"
1765
1766 def children(self):
1767 if self.length == 0:
1768 return
1769 null_bits = self._null_bitmap()
1770 address = self._buffer(1).data + self.offset * self.byte_width
1771 for i, valid in enumerate(null_bits):
1772 if valid:
1773 if self.byte_width:
1774 yield self._valid_child(
1775 i, bytes_literal(address, self.byte_width))
1776 else:
1777 yield self._valid_child(i, '""')
1778 else:
1779 yield self._null_child(i)
1780 address += self.byte_width
1781
1782
1783class BinaryArrayDataPrinter(ArrayDataPrinter):

Callers

nothing calls this directly

Calls 5

bytes_literalFunction · 0.85
_null_bitmapMethod · 0.80
_bufferMethod · 0.80
_valid_childMethod · 0.80
_null_childMethod · 0.80

Tested by

no test coverage detected