Class OSelectStatement
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OStatement
com.orientechnologies.orient.core.sql.parser.OSelectStatement
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
OSelectWithoutTargetStatement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OFetchPlanprotected OGroupByprotected OLetClauseprotected OLimitprotected OStorage.LOCKING_STRATEGYprotected Booleanprotected OOrderByprotected Booleanprotected OProjectionprotected OSkipprotected OFromClauseprotected OTimeoutprotected OUnwindprotected OWhereClauseFields inherited from class com.orientechnologies.orient.core.sql.parser.OStatement
CUSTOM_STRICT_SQL, originalStatementFields inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
children, firstToken, id, lastToken, PARAMETER_PLACEHOLDER, parent, parser, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()createExecutionPlan(OCommandContext ctx, boolean enableProfiling) creates an execution plan for current statementcreateExecutionPlanNoCache(OCommandContext ctx, boolean enableProfiling) voiddeserialize(OResult fromResult) booleanexecute(ODatabaseSession db, Object[] args, OCommandContext parentCtx, boolean usePlanCache) execute(ODatabaseSession db, Map params, OCommandContext parentCtx, boolean usePlanCache) booleangetLimit()getSkip()inthashCode()booleanbooleanvoidsetFetchPlan(OFetchPlan fetchPlan) voidsetGroupBy(OGroupBy groupBy) voidsetLetClause(OLetClause letClause) voidvoidsetLockRecord(OStorage.LOCKING_STRATEGY lockRecord) voidsetNoCache(Boolean noCache) voidsetOrderBy(OOrderBy orderBy) voidsetParallel(Boolean parallel) voidsetProjection(OProjection projection) voidvoidsetTarget(OFromClause target) voidsetTimeout(OTimeout timeout) voidvoidsetWhereClause(OWhereClause whereClause) voidtoGenericStatement(StringBuilder builder) voidtoString(Map<Object, Object> params, StringBuilder builder) voidvalidate()Methods inherited from class com.orientechnologies.orient.core.sql.parser.OStatement
createExecutionPlan, deserializeFromOResult, execute, execute, execute, execute, execute, execute, execute, getOriginalStatement, setOriginalStatement, toStringMethods 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
-
Field Details
-
target
-
projection
-
whereClause
-
groupBy
-
orderBy
-
unwind
-
skip
-
limit
-
lockRecord
-
fetchPlan
-
letClause
-
timeout
-
parallel
-
noCache
-
-
Constructor Details
-
OSelectStatement
public OSelectStatement(int id) -
OSelectStatement
-
-
Method Details
-
getProjection
-
setProjection
-
getTarget
-
setTarget
-
getWhereClause
-
setWhereClause
-
getGroupBy
-
setGroupBy
-
getOrderBy
-
setOrderBy
-
getSkip
-
setSkip
-
getLimit
-
setLimit
-
getLockRecord
-
setLockRecord
-
getFetchPlan
-
setFetchPlan
-
getLetClause
-
setLetClause
-
toString
- Overrides:
toStringin classOStatement
-
toGenericStatement
- Overrides:
toGenericStatementin classOStatement
-
validate
- Overrides:
validatein classOStatement- Throws:
OCommandSQLParsingException
-
executinPlanCanBeCached
public boolean executinPlanCanBeCached()- Overrides:
executinPlanCanBeCachedin classOStatement
-
execute
public OResultSet execute(ODatabaseSession db, Object[] args, OCommandContext parentCtx, boolean usePlanCache) - Overrides:
executein classOStatement
-
execute
public OResultSet execute(ODatabaseSession db, Map params, OCommandContext parentCtx, boolean usePlanCache) - Overrides:
executein classOStatement
-
createExecutionPlan
Description copied from class:OStatementcreates an execution plan for current statement- Overrides:
createExecutionPlanin classOStatement- Parameters:
ctx- the context that will be used to execute the statementenableProfiling- true to enable profiling, false to disable it- Returns:
- an execution plan
-
createExecutionPlanNoCache
public OInternalExecutionPlan createExecutionPlanNoCache(OCommandContext ctx, boolean enableProfiling) - Overrides:
createExecutionPlanNoCachein classOStatement
-
copy
- Overrides:
copyin classOStatement
-
equals
-
hashCode
public int hashCode() -
refersToParent
public boolean refersToParent()- Overrides:
refersToParentin classOStatement
-
getUnwind
-
isIdempotent
public boolean isIdempotent()- Overrides:
isIdempotentin classOStatement
-
setUnwind
-
getTimeout
-
setTimeout
-
setParallel
-
setNoCache
-
serialize
- Overrides:
serializein classOStatement
-
deserialize
- Overrides:
deserializein classOStatement
-