Package com.arcadedb.query.sql.parser
Class MatchStatement
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.Statement
-
- com.arcadedb.query.sql.parser.MatchStatement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MatchStatement.EdgeTraversal
class
MatchStatement.MatchContext
static class
MatchStatement.MatchExecutionPlan
-
Field Summary
Fields Modifier and Type Field Description protected GroupBy
groupBy
static String
KEYWORD_MATCH
protected List<MatchExpression>
matchExpressions
protected List<MatchExpression>
notMatchExpressions
protected OrderBy
orderBy
protected Pattern
pattern
protected List<Identifier>
returnAliases
protected boolean
returnDistinct
protected List<Expression>
returnItems
protected List<NestedProjection>
returnNestedProjections
protected Skip
skip
protected Unwind
unwind
-
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 MatchStatement()
MatchStatement(int id)
MatchStatement(SqlParser p, int id)
-
Method Summary
-
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
-
KEYWORD_MATCH
public static final String KEYWORD_MATCH
- See Also:
- Constant Field Values
-
matchExpressions
protected List<MatchExpression> matchExpressions
-
notMatchExpressions
protected List<MatchExpression> notMatchExpressions
-
returnItems
protected List<Expression> returnItems
-
returnAliases
protected List<Identifier> returnAliases
-
returnNestedProjections
protected List<NestedProjection> returnNestedProjections
-
returnDistinct
protected boolean returnDistinct
-
groupBy
protected GroupBy groupBy
-
orderBy
protected OrderBy orderBy
-
unwind
protected Unwind unwind
-
skip
protected Skip skip
-
pattern
protected Pattern pattern
-
-
Constructor Detail
-
MatchStatement
public MatchStatement()
-
MatchStatement
public MatchStatement(int id)
-
MatchStatement
public MatchStatement(SqlParser p, int id)
-
-
Method Detail
-
getReturnNestedProjections
public List<NestedProjection> getReturnNestedProjections()
-
setReturnNestedProjections
public void setReturnNestedProjections(List<NestedProjection> returnNestedProjections)
-
execute
public ResultSet execute(Database db, Object[] args, CommandContext parentCtx, boolean usePlanCache)
-
execute
public ResultSet execute(Database db, Map params, CommandContext parentCtx, boolean usePlanCache)
-
createExecutionPlan
public InternalExecutionPlan createExecutionPlan(CommandContext ctx, boolean enableProfiling)
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 statementenableProfiling
- true to enable profiling, false to disable it- Returns:
- an execution plan
-
buildPatterns
protected void buildPatterns()
-
returnsPathElements
public boolean returnsPathElements()
-
returnsElements
public boolean returnsElements()
-
returnsPatterns
public boolean returnsPatterns()
-
returnsPaths
public boolean returnsPaths()
-
isIdempotent
public boolean isIdempotent()
- Overrides:
isIdempotent
in classStatement
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
-
copy
public MatchStatement copy()
-
getReturnAliases
public List<Identifier> getReturnAliases()
-
setReturnAliases
public void setReturnAliases(List<Identifier> returnAliases)
-
getReturnItems
public List<Expression> getReturnItems()
-
setReturnItems
public void setReturnItems(List<Expression> returnItems)
-
getMatchExpressions
public List<MatchExpression> getMatchExpressions()
-
setMatchExpressions
public void setMatchExpressions(List<MatchExpression> matchExpressions)
-
getNotMatchExpressions
public List<MatchExpression> getNotMatchExpressions()
-
setNotMatchExpressions
public void setNotMatchExpressions(List<MatchExpression> notMatchExpressions)
-
isReturnDistinct
public boolean isReturnDistinct()
-
setReturnDistinct
public void setReturnDistinct(boolean returnDistinct)
-
getOrderBy
public OrderBy getOrderBy()
-
setOrderBy
public void setOrderBy(OrderBy orderBy)
-
getGroupBy
public GroupBy getGroupBy()
-
setGroupBy
public void setGroupBy(GroupBy groupBy)
-
getUnwind
public Unwind getUnwind()
-
setUnwind
public void setUnwind(Unwind unwind)
-
getSkip
public Skip getSkip()
-
setSkip
public void setSkip(Skip skip)
-
-