(self)
| 2240 | yield ("type", field.type) |
| 2241 | |
| 2242 | def to_string(self): |
| 2243 | num_fields = len(self.schema.fields) |
| 2244 | md_items = len(self.schema.metadata) |
| 2245 | if md_items > 0: |
| 2246 | return (f"arrow::Schema with {num_fields} fields " |
| 2247 | f"and {md_items} metadata items") |
| 2248 | else: |
| 2249 | return f"arrow::Schema with {num_fields} fields" |
| 2250 | |
| 2251 | |
| 2252 | class BaseColumnarPrinter: |