java.lang.Object
org.apache.arrow.gandiva.expression.ArrowTypeHelper
Utility methods to convert between Arrow and Gandiva types.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GandivaTypes.FieldarrowFieldToProtobuf(Field field) Converts an arrow field object to a protobuf.static GandivaTypes.SchemaarrowSchemaToProtobuf(Schema schema) Converts a schema object to a protobuf.static GandivaTypes.ExtGandivaTypearrowTypeToProtobuf(ArrowType arrowType) Converts an arrow type into a protobuf.
-
Method Details
-
arrowTypeToProtobuf
public static GandivaTypes.ExtGandivaType arrowTypeToProtobuf(ArrowType arrowType) throws GandivaException Converts an arrow type into a protobuf.- Parameters:
arrowType- Arrow type to be converted- Returns:
- Protobuf representing the arrow type
- Throws:
GandivaException
-
arrowFieldToProtobuf
Converts an arrow field object to a protobuf.- Parameters:
field- Arrow field to be converted- Returns:
- Protobuf representing the arrow field
- Throws:
GandivaException
-
arrowSchemaToProtobuf
Converts a schema object to a protobuf.- Parameters:
schema- Schema object to be converted- Returns:
- Protobuf representing a schema object
- Throws:
GandivaException
-