Package com.arcadedb.query.sql.parser
Class Statement
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.Statement
-
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
CreateEdgeStatement
,CreateVertexStatement
,DDLStatement
,DeleteEdgeStatement
,DeleteStatement
,DeleteVertexStatement
,ExplainStatement
,ForEachBlock
,IfStatement
,InsertStatement
,MatchStatement
,ProfileStatement
,SelectStatement
,SimpleExecStatement
,TraverseStatement
,UpdateStatement
,WhileBlock
public class Statement extends SimpleNode
-
-
Field Summary
Fields Modifier and Type Field Description static String
CUSTOM_STRICT_SQL
protected Limit
limit
protected String
originalStatement
protected Timeout
timeout
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
children, firstToken, id, lastToken, parent, parser, value
-
-
Method Summary
-
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
-
-
-
-
Field Detail
-
originalStatement
protected String originalStatement
-
limit
protected Limit limit
-
timeout
protected Timeout timeout
-
CUSTOM_STRICT_SQL
public static final String CUSTOM_STRICT_SQL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Statement
public Statement(int id)
-
Statement
public Statement(SqlParser p, int id)
-
-
Method Detail
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classSimpleNode
-
validate
public void validate() throws CommandSQLParsingException
- Throws:
CommandSQLParsingException
-
toString
public String toString(String prefix)
- Overrides:
toString
in classSimpleNode
-
execute
public ResultSet execute(Database db, Object[] args, CommandContext parentContext)
-
execute
public ResultSet execute(Database db, Map<String,Object> args, CommandContext parentContext)
-
execute
public ResultSet execute(Database db, Object[] args, CommandContext parentContext, boolean usePlanCache)
-
execute
public ResultSet execute(Database db, Map<String,Object> args, CommandContext parentContext, boolean usePlanCache)
-
createExecutionPlan
public InternalExecutionPlan createExecutionPlan(CommandContext ctx)
creates an execution plan for current statement, with profiling disabled- Parameters:
ctx
- the context that will be used to execute the statement- Returns:
- an execution plan
-
createExecutionPlan
public InternalExecutionPlan createExecutionPlan(CommandContext ctx, boolean profile)
creates an execution plan for current statement- Parameters:
ctx
- the context that will be used to execute the statementprofile
- true to enable profiling, false to disable it- Returns:
- an execution plan
-
createExecutionPlanNoCache
public InternalExecutionPlan createExecutionPlanNoCache(CommandContext ctx, boolean profile)
-
copy
public Statement copy()
- Overrides:
copy
in classSimpleNode
-
refersToParent
public boolean refersToParent()
-
isIdempotent
public boolean isIdempotent()
-
isDDL
public boolean isDDL()
-
serialize
public Result serialize()
-
deserialize
public void deserialize(Result fromResult)
-
executionPlanCanBeCached
public boolean executionPlanCanBeCached()
-
getOriginalStatement
public String getOriginalStatement()
-
setOriginalStatement
public void setOriginalStatement(String originalStatement)
-
getLimit
public Limit getLimit()
-
setLimit
public void setLimit(Limit limit)
-
getTimeout
public Timeout getTimeout()
-
setTimeout
public void setTimeout(Timeout timeout)
-
-