Package io.trino.sql.tree
Class ColumnDefinition
- java.lang.Object
-
- io.trino.sql.tree.Node
-
- io.trino.sql.tree.TableElement
-
- io.trino.sql.tree.ColumnDefinition
-
public final class ColumnDefinition extends TableElement
-
-
Constructor Summary
Constructors Constructor Description ColumnDefinition(Identifier name, DataType type, boolean nullable, List<Property> properties, Optional<String> comment)ColumnDefinition(NodeLocation location, Identifier name, DataType type, boolean nullable, List<Property> properties, Optional<String> comment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(AstVisitor<R,C> visitor, C context)Accessible forAstVisitor, useAstVisitor.process(Node, Object)instead.booleanequals(Object obj)List<Node>getChildren()Optional<String>getComment()IdentifiergetName()List<Property>getProperties()DataTypegetType()inthashCode()booleanisNullable()StringtoString()-
Methods inherited from class io.trino.sql.tree.Node
getLocation, shallowEquals
-
-
-
-
Constructor Detail
-
ColumnDefinition
public ColumnDefinition(Identifier name, DataType type, boolean nullable, List<Property> properties, Optional<String> comment)
-
ColumnDefinition
public ColumnDefinition(NodeLocation location, Identifier name, DataType type, boolean nullable, List<Property> properties, Optional<String> comment)
-
-
Method Detail
-
getName
public Identifier getName()
-
getType
public DataType getType()
-
isNullable
public boolean isNullable()
-
accept
public <R,C> R accept(AstVisitor<R,C> visitor, C context)
Description copied from class:NodeAccessible forAstVisitor, useAstVisitor.process(Node, Object)instead.- Overrides:
acceptin classTableElement
-
getChildren
public List<Node> getChildren()
- Specified by:
getChildrenin classNode
-
-