Class SubstraitField
- java.lang.Object
-
- com.amazonaws.athena.connector.substrait.model.SubstraitField
-
public final class SubstraitField extends Object
Represents a field in a Substrait schema with its name, type, and optional nested children. This class models the hierarchical structure of Substrait fields, supporting complex types like structs that can contain nested fields.
-
-
Constructor Summary
Constructors Constructor Description SubstraitField(String name, String type, List<SubstraitField> children)
Constructs a SubstraitField with the specified name, type, and children.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<SubstraitField>
getChildren()
String
getName()
String
getType()
boolean
hasChildren()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
SubstraitField
public SubstraitField(String name, String type, List<SubstraitField> children)
Constructs a SubstraitField with the specified name, type, and children.- Parameters:
name
- The name of the field, must not be nulltype
- The type of the field, must not be nullchildren
- The list of child fields for complex types, may be null or empty- Throws:
IllegalArgumentException
- if name or type is null
-
-
Method Detail
-
getName
public String getName()
-
getType
public String getType()
-
getChildren
public List<SubstraitField> getChildren()
-
hasChildren
public boolean hasChildren()
-
-