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

Class NullBitmap

cpp/gdb_arrow.py:803–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801
802
803class NullBitmap(Bitmap):
804
805 def __getitem__(self, index):
806 self._check_index(index)
807 if self.view is None:
808 return True
809 return super().__getitem__(index)
810
811 @classmethod
812 def from_buffer(cls, buf, offset, length):
813 """
814 Create a null bitmap from a Buffer (or None if missing,
815 in which case all values are True).
816 """
817 if buf is None:
818 return cls(buf, offset, length)
819 return super().from_buffer(buf, offset, length)
820
821
822KeyValue = namedtuple('KeyValue', ('key', 'value'))

Callers 1

ArrayOfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected