Package io.prestosql.sql.tree
Class ColumnDefinition
- java.lang.Object
-
- io.prestosql.sql.tree.Node
-
- io.prestosql.sql.tree.TableElement
-
- io.prestosql.sql.tree.ColumnDefinition
-
public final class ColumnDefinition extends TableElement
-
-
Constructor Summary
Constructors Constructor Description ColumnDefinition(Identifier name, DataType type, boolean nullable, java.util.List<Property> properties, java.util.Optional<java.lang.String> comment)ColumnDefinition(NodeLocation location, Identifier name, DataType type, boolean nullable, java.util.List<Property> properties, java.util.Optional<java.lang.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(java.lang.Object obj)java.util.List<Node>getChildren()java.util.Optional<java.lang.String>getComment()IdentifiergetName()java.util.List<Property>getProperties()DataTypegetType()inthashCode()booleanisNullable()java.lang.StringtoString()-
Methods inherited from class io.prestosql.sql.tree.Node
getLocation
-
-
-
-
Constructor Detail
-
ColumnDefinition
public ColumnDefinition(Identifier name, DataType type, boolean nullable, java.util.List<Property> properties, java.util.Optional<java.lang.String> comment)
-
ColumnDefinition
public ColumnDefinition(NodeLocation location, Identifier name, DataType type, boolean nullable, java.util.List<Property> properties, java.util.Optional<java.lang.String> comment)
-
-
Method Detail
-
getName
public Identifier getName()
-
getType
public DataType getType()
-
isNullable
public boolean isNullable()
-
getProperties
public java.util.List<Property> getProperties()
-
getComment
public java.util.Optional<java.lang.String> getComment()
-
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 java.util.List<Node> getChildren()
- Specified by:
getChildrenin classNode
-
-