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

Method children

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

Source from the content-addressed store, hash-verified

1781 return "array"
1782
1783 def children(self):
1784 if self.length == 0:
1785 return
1786 null_bits = self._null_bitmap()
1787 address = self._buffer(1).data + self.offset * self.byte_width
1788 for i, valid in enumerate(null_bits):
1789 if valid:
1790 if self.byte_width:
1791 yield self._valid_child(
1792 i, bytes_literal(address, self.byte_width))
1793 else:
1794 yield self._valid_child(i, '""')
1795 else:
1796 yield self._null_child(i)
1797 address += self.byte_width
1798
1799
1800class 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