Package com.arcadedb.query.sql.parser
Class DDLStatement
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.Statement
-
- com.arcadedb.query.sql.parser.DDLStatement
-
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
AlterBucketStatement
,AlterDatabaseStatement
,AlterPropertyStatement
,AlterTypeStatement
,CreateBucketStatement
,CreateIndexStatement
,CreatePropertyStatement
,CreateTypeAbstractStatement
,DropBucketStatement
,DropIndexStatement
,DropPropertyStatement
,DropTypeStatement
,RebuildIndexStatement
,TruncateBucketStatement
,TruncateTypeStatement
public abstract class DDLStatement extends Statement
Created by luigidellaquila on 12/08/16.
-
-
Field Summary
-
Fields inherited from class com.arcadedb.query.sql.parser.Statement
CUSTOM_STRICT_SQL, limit, originalStatement, timeout
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
children, firstToken, id, lastToken, parent, parser, value
-
-
Constructor Summary
Constructors Constructor Description DDLStatement(int id)
DDLStatement(SqlParser p, int id)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description InternalExecutionPlan
createExecutionPlan(CommandContext ctx, boolean enableProfiling)
creates an execution plan for current statementResultSet
execute(Database db, Object[] args, CommandContext parentCtx, boolean usePlanCache)
ResultSet
execute(Database db, Map params, CommandContext parentCtx, boolean usePlanCache)
abstract ResultSet
executeDDL(CommandContext ctx)
-
Methods inherited from class com.arcadedb.query.sql.parser.Statement
copy, createExecutionPlan, createExecutionPlanNoCache, deserialize, deserializeFromOResult, execute, execute, execute, execute, execute, execute, executionPlanCanBeCached, getLimit, getOriginalStatement, getTimeout, isDDL, isIdempotent, refersToParent, serialize, setLimit, setOriginalStatement, setTimeout, toString, toString, validate
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
childrenAccept, dump, getValue, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString
-
-
-
-
Constructor Detail
-
DDLStatement
public DDLStatement(int id)
-
DDLStatement
public DDLStatement(SqlParser p, int id)
-
-
Method Detail
-
executeDDL
public abstract ResultSet executeDDL(CommandContext ctx)
-
execute
public ResultSet execute(Database db, Object[] args, CommandContext parentCtx, boolean usePlanCache)
-
execute
public ResultSet execute(Database db, Map params, CommandContext parentCtx, boolean usePlanCache)
-
createExecutionPlan
public InternalExecutionPlan createExecutionPlan(CommandContext ctx, boolean enableProfiling)
Description copied from class:Statement
creates an execution plan for current statement- Overrides:
createExecutionPlan
in classStatement
- Parameters:
ctx
- the context that will be used to execute the statementenableProfiling
- true to enable profiling, false to disable it- Returns:
- an execution plan
-
-