exportSchema
Builds the ArrowSchema for one dtype: the verified format string, an optional name, null metadata, and the rich kinds' wiring - LIST carries its element child ("item"), CATEGORICAL carries its labels dictionary, STRUCT rejects (the storage tier drops field names). The strings and the nested tree are owned by the schema: the release callback frees them exactly once, recursively.
Parameters
dtype | the dtype to describe |
name | the optional field name (null for none) |
Returns
the schema (caller must call release).
Throws
DataFrameException for STRUCT and non-STRING categorical
labels.