Package io.trino.sql.tree
Class CreateTable
- java.lang.Object
-
- io.trino.sql.tree.Node
-
- io.trino.sql.tree.Statement
-
- io.trino.sql.tree.CreateTable
-
public class CreateTable extends Statement
-
-
Constructor Summary
Constructors Constructor Description CreateTable(NodeLocation location, QualifiedName name, List<TableElement> elements, boolean notExists, List<Property> properties, Optional<String> comment)CreateTable(QualifiedName name, List<TableElement> elements, boolean notExists, 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()List<TableElement>getElements()QualifiedNamegetName()List<Property>getProperties()inthashCode()booleanisNotExists()StringtoString()-
Methods inherited from class io.trino.sql.tree.Node
getLocation, shallowEquals
-
-
-
-
Constructor Detail
-
CreateTable
public CreateTable(QualifiedName name, List<TableElement> elements, boolean notExists, List<Property> properties, Optional<String> comment)
-
CreateTable
public CreateTable(NodeLocation location, QualifiedName name, List<TableElement> elements, boolean notExists, List<Property> properties, Optional<String> comment)
-
-
Method Detail
-
getName
public QualifiedName getName()
-
getElements
public List<TableElement> getElements()
-
isNotExists
public boolean isNotExists()
-
accept
public <R,C> R accept(AstVisitor<R,C> visitor, C context)
Description copied from class:NodeAccessible forAstVisitor, useAstVisitor.process(Node, Object)instead.
-
getChildren
public List<Node> getChildren()
- Specified by:
getChildrenin classNode
-
-