A arrow::ExtensionType.
| 944 | |
| 945 | |
| 946 | class ExtensionType: |
| 947 | """ |
| 948 | A arrow::ExtensionType. |
| 949 | """ |
| 950 | |
| 951 | def __init__(self, val): |
| 952 | self.val = val |
| 953 | |
| 954 | @property |
| 955 | def storage_type(self): |
| 956 | return deref(self.val['storage_type_']) |
| 957 | |
| 958 | def to_string(self): |
| 959 | """ |
| 960 | The result of calling ToString(show_metadata=True). |
| 961 | """ |
| 962 | # XXX `show_metadata` is an optional argument, but gdb doesn't allow |
| 963 | # omitting it. |
| 964 | return StdString(gdb.parse_and_eval( |
| 965 | f"{for_evaluation(self.val)}.ToString(true)")) |
| 966 | |
| 967 | |
| 968 | class Schema: |
no outgoing calls
no test coverage detected