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

Method children

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

Source from the content-addressed store, hash-verified

1811 return "array"
1812
1813 def children(self):
1814 if self.length == 0:
1815 return
1816 null_bits = self._null_bitmap()
1817 offsets = self._unpacked_buffer_values(
1818 1, Type.INT64 if self.is_large else Type.INT32,
1819 length=self.length + 1)
1820 values = self._buffer(2).data
1821 for i, valid in enumerate(null_bits):
1822 if valid:
1823 start = offsets[i]
1824 size = offsets[i + 1] - start
1825 if size:
1826 yield self._valid_child(
1827 i, self.format_string(values + start, size))
1828 else:
1829 yield self._valid_child(i, '""')
1830 else:
1831 yield self._null_child(i)
1832
1833
1834class ArrayPrinter:

Callers

nothing calls this directly

Calls 5

_null_bitmapMethod · 0.80
_bufferMethod · 0.80
_valid_childMethod · 0.80
_null_childMethod · 0.80

Tested by

no test coverage detected