Package com.arcadedb.query.sql.parser
Class ProfileStatement
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.Statement
-
- com.arcadedb.query.sql.parser.ProfileStatement
-
-
Field Summary
Fields Modifier and Type Field Description protected Statement
statement
-
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 ProfileStatement(int id)
ProfileStatement(SqlParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileStatement
copy()
InternalExecutionPlan
createExecutionPlan(CommandContext ctx, boolean profile)
creates an execution plan for current statementboolean
equals(Object o)
ResultSet
execute(Database db, Object[] args, CommandContext parentCtx, boolean usePlanCache)
ResultSet
execute(Database db, Map args, CommandContext parentCtx, boolean usePlanCache)
int
hashCode()
boolean
isIdempotent()
void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.Statement
createExecutionPlan, createExecutionPlanNoCache, deserialize, deserializeFromOResult, execute, execute, execute, execute, execute, execute, executionPlanCanBeCached, getLimit, getOriginalStatement, getTimeout, isDDL, refersToParent, serialize, setLimit, setOriginalStatement, setTimeout, 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
-
-
-
-
Field Detail
-
statement
protected Statement statement
-
-
Constructor Detail
-
ProfileStatement
public ProfileStatement(int id)
-
ProfileStatement
public ProfileStatement(SqlParser p, int id)
-
-
Method Detail
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
-
execute
public ResultSet execute(Database db, Object[] args, CommandContext parentCtx, boolean usePlanCache)
-
execute
public ResultSet execute(Database db, Map args, CommandContext parentCtx, boolean usePlanCache)
-
createExecutionPlan
public InternalExecutionPlan createExecutionPlan(CommandContext ctx, boolean profile)
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 statementprofile
- true to enable profiling, false to disable it- Returns:
- an execution plan
-
copy
public ProfileStatement copy()
-
isIdempotent
public boolean isIdempotent()
- Overrides:
isIdempotent
in classStatement
-
-