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

Method children

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

Source from the content-addressed store, hash-verified

1794 return "array"
1795
1796 def children(self):
1797 if self.length == 0:
1798 return
1799 null_bits = self._null_bitmap()
1800 offsets = self._unpacked_buffer_values(
1801 1, Type.INT64 if self.is_large else Type.INT32,
1802 length=self.length + 1)
1803 values = self._buffer(2).data
1804 for i, valid in enumerate(null_bits):
1805 if valid:
1806 start = offsets[i]
1807 size = offsets[i + 1] - start
1808 if size:
1809 yield self._valid_child(
1810 i, self.format_string(values + start, size))
1811 else:
1812 yield self._valid_child(i, '""')
1813 else:
1814 yield self._null_child(i)
1815
1816
1817class 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