Package org.apache.datafusion.proto
Class SchemaConverter
java.lang.Object
org.apache.datafusion.proto.SchemaConverter
Convert between Arrow Java
Schema and the datafusion_common.Schema protobuf shape
used by DataFusion plan messages such as ListingTableScanNode.schema.
Supports the primitive Arrow types this project's tests exercise (Bool, signed/unsigned Int
8..64, Float32/64, Utf8, Utf8View, LargeUtf8, Date32, Decimal128). Anything else raises UnsupportedOperationException with a message naming the offending type.
-
Method Summary
-
Method Details
-
toProto
public static datafusion_common.DatafusionCommon.Schema toProto(org.apache.arrow.vector.types.pojo.Schema arrow) -
fromProto
public static org.apache.arrow.vector.types.pojo.Schema fromProto(datafusion_common.DatafusionCommon.Schema proto)
-