Package com.arcadedb.query.sql.parser
Class SelectStatement
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.Statement
-
- com.arcadedb.query.sql.parser.SelectStatement
-
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
SelectWithoutTargetStatement
public class SelectStatement extends Statement
-
-
Field Summary
Fields Modifier and Type Field Description protected GroupBy
groupBy
protected LetClause
letClause
protected OrderBy
orderBy
protected Projection
projection
protected Skip
skip
protected FromClause
target
protected Unwind
unwind
protected WhereClause
whereClause
-
Fields inherited from class com.arcadedb.query.sql.parser.Statement
CUSTOM_STRICT_SQL, limit, originalStatement, originalStatementAsString, timeout
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
cachedStringForm, children, value
-
-
Constructor Summary
Constructors Constructor Description SelectStatement(int id)
-
Method Summary
-
Methods inherited from class com.arcadedb.query.sql.parser.Statement
execute, execute, execute, execute, execute, execute, getLimit, getOriginalStatement, getTimeout, isDDL, setLimit, setOriginalStatement, setTimeout, toString
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
equals, getCacheableElements, getValue, hashCode, isCacheable, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString
-
-
-
-
Field Detail
-
target
protected FromClause target
-
projection
protected Projection projection
-
whereClause
protected WhereClause whereClause
-
groupBy
protected GroupBy groupBy
-
orderBy
protected OrderBy orderBy
-
unwind
protected Unwind unwind
-
skip
protected Skip skip
-
letClause
protected LetClause letClause
-
-
Method Detail
-
getProjection
public Projection getProjection()
-
getTarget
public FromClause getTarget()
-
setTarget
public void setTarget(FromClause target)
-
getWhereClause
public WhereClause getWhereClause()
-
setWhereClause
public void setWhereClause(WhereClause whereClause)
-
getGroupBy
public GroupBy getGroupBy()
-
getOrderBy
public OrderBy getOrderBy()
-
getSkip
public Skip getSkip()
-
getLetClause
public LetClause getLetClause()
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
-
validate
public void validate() throws CommandSQLParsingException
- Overrides:
validate
in classStatement
- Throws:
CommandSQLParsingException
-
executionPlanCanBeCached
public boolean executionPlanCanBeCached()
- Overrides:
executionPlanCanBeCached
in classStatement
-
execute
public ResultSet execute(Database db, Object[] args, CommandContext parentContext, boolean usePlanCache)
-
execute
public ResultSet execute(Database db, Map<String,Object> params, CommandContext parentContext, boolean usePlanCache)
-
createExecutionPlan
public InternalExecutionPlan createExecutionPlan(CommandContext context)
Description copied from class:Statement
creates an execution plan for current statement, with profiling disabled- Overrides:
createExecutionPlan
in classStatement
- Parameters:
context
- the context that will be used to execute the statement- Returns:
- an execution plan
-
createExecutionPlanNoCache
public InternalExecutionPlan createExecutionPlanNoCache(CommandContext context)
- Overrides:
createExecutionPlanNoCache
in classStatement
-
copy
public SelectStatement copy()
-
getIdentityElements
protected Object[] getIdentityElements()
- Overrides:
getIdentityElements
in classSimpleNode
-
refersToParent
public boolean refersToParent()
- Overrides:
refersToParent
in classStatement
-
getUnwind
public Unwind getUnwind()
-
isIdempotent
public boolean isIdempotent()
- Overrides:
isIdempotent
in classStatement
-
setUnwind
public void setUnwind(Unwind unwind)
-
-