Class OSimpleExecServerStatement
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OServerStatement
com.orientechnologies.orient.core.sql.parser.OSimpleExecServerStatement
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
OAlterSystemRoleStatement,OCreateDatabaseStatement,OCreateSystemUserStatement,ODropDatabaseStatement,OExistsSystemUserStatement
Superclass for SQL statements that are too simple to deserve an execution planner. All the
execution is delegated to the statement itself, with the execute(ctx) method.
- Author:
- Luigi Dell'Aquila (l.dellaquila-(at)-orientdb.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
children, firstToken, id, lastToken, PARAMETER_PLACEHOLDER, parent, parser, value -
Constructor Summary
ConstructorsConstructorDescriptionOSimpleExecServerStatement(int id) OSimpleExecServerStatement(OrientSql p, int id) -
Method Summary
Modifier and TypeMethodDescriptioncreateExecutionPlan(OServerCommandContext ctx, boolean enableProfiling) creates an execution plan for current statementexecute(OrientDBInternal db, Object[] args, OServerCommandContext parentContext, boolean usePlanCache) execute(OrientDBInternal db, Map params, OServerCommandContext parentContext, boolean usePlanCache) abstract OResultSetMethods inherited from class com.orientechnologies.orient.core.sql.parser.OServerStatement
copy, createExecutionPlan, createExecutionPlanNoCache, deserialize, deserializeFromOResult, execute, execute, execute, execute, execute, execute, execute, executinPlanCanBeCached, isIdempotent, refersToParent, serialize, toGenericStatement, toString, toString, validateMethods inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
dump, getDatabase, getValue, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toGenericStatement, toString
-
Constructor Details
-
OSimpleExecServerStatement
public OSimpleExecServerStatement(int id) -
OSimpleExecServerStatement
-
-
Method Details
-
executeSimple
-
execute
public OResultSet execute(OrientDBInternal db, Object[] args, OServerCommandContext parentContext, boolean usePlanCache) - Overrides:
executein classOServerStatement
-
execute
public OResultSet execute(OrientDBInternal db, Map params, OServerCommandContext parentContext, boolean usePlanCache) - Overrides:
executein classOServerStatement
-
createExecutionPlan
public OInternalExecutionPlan createExecutionPlan(OServerCommandContext ctx, boolean enableProfiling) Description copied from class:OServerStatementcreates an execution plan for current statement- Overrides:
createExecutionPlanin classOServerStatement- Parameters:
ctx- the context that will be used to execute the statementenableProfiling- true to enable profiling, false to disable it- Returns:
- an execution plan
-