(self)
| 2306 | self.variant = Variant(val['value']) |
| 2307 | |
| 2308 | def to_string(self): |
| 2309 | if self.variant.index == 0: |
| 2310 | # Datum::NONE |
| 2311 | return "arrow::Datum (empty)" |
| 2312 | if self.variant.value_type is None: |
| 2313 | return "arrow::Datum (uninitialized or corrupt?)" |
| 2314 | # All non-empty Datums contain a shared_ptr<T> |
| 2315 | value = deref(self.variant.value) |
| 2316 | return f"arrow::Datum of value {value}" |
| 2317 | |
| 2318 | |
| 2319 | class BufferPrinter: |