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

Method to_string

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

Source from the content-addressed store, hash-verified

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
2319class BufferPrinter:

Callers

nothing calls this directly

Calls 1

derefFunction · 0.85

Tested by

no test coverage detected