Package io.prestosql.sql.tree
Class CreateSchema
- java.lang.Object
-
- io.prestosql.sql.tree.Node
-
- io.prestosql.sql.tree.Statement
-
- io.prestosql.sql.tree.CreateSchema
-
public class CreateSchema extends Statement
-
-
Constructor Summary
Constructors Constructor Description CreateSchema(NodeLocation location, QualifiedName schemaName, boolean notExists, java.util.List<Property> properties, java.util.Optional<PrincipalSpecification> principal)CreateSchema(QualifiedName schemaName, boolean notExists, java.util.List<Property> properties)CreateSchema(QualifiedName schemaName, boolean notExists, java.util.List<Property> properties, java.util.Optional<PrincipalSpecification> principal)
-
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<Property>getChildren()java.util.Optional<PrincipalSpecification>getPrincipal()java.util.List<Property>getProperties()QualifiedNamegetSchemaName()inthashCode()booleanisNotExists()java.lang.StringtoString()-
Methods inherited from class io.prestosql.sql.tree.Node
getLocation
-
-
-
-
Constructor Detail
-
CreateSchema
public CreateSchema(QualifiedName schemaName, boolean notExists, java.util.List<Property> properties)
-
CreateSchema
public CreateSchema(QualifiedName schemaName, boolean notExists, java.util.List<Property> properties, java.util.Optional<PrincipalSpecification> principal)
-
CreateSchema
public CreateSchema(NodeLocation location, QualifiedName schemaName, boolean notExists, java.util.List<Property> properties, java.util.Optional<PrincipalSpecification> principal)
-
-
Method Detail
-
getSchemaName
public QualifiedName getSchemaName()
-
isNotExists
public boolean isNotExists()
-
getPrincipal
public java.util.Optional<PrincipalSpecification> getPrincipal()
-
getProperties
public java.util.List<Property> getProperties()
-
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 java.util.List<Property> getChildren()
- Specified by:
getChildrenin classNode
-
-