Class OMatchStatement
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OStatement
com.orientechnologies.orient.core.sql.parser.OMatchStatement
- All Implemented Interfaces:
Node
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OGroupBystatic final Stringprotected OLimitprotected List<OMatchExpression>protected List<OMatchExpression>protected OOrderByprotected Patternprotected List<OIdentifier>protected booleanprotected List<OExpression>protected List<ONestedProjection>protected OSkipprotected OUnwindFields 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 TypeMethodDescriptionvoidvoidvoidaddReturnAlias(OIdentifier alias) voidaddReturnItem(OExpression item) voidaddReturnNestedProjection(ONestedProjection projection) protected voidcopy()creates an execution plan for current statement, with profiling disabledbooleangetLimit()getSkip()inthashCode()booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetGroupBy(OGroupBy groupBy) voidvoidsetMatchExpressions(List<OMatchExpression> matchExpressions) voidsetNotMatchExpressions(List<OMatchExpression> notMatchExpressions) voidsetOrderBy(OOrderBy orderBy) voidsetReturnAliases(List<OIdentifier> returnAliases) voidsetReturnDistinct(boolean returnDistinct) voidsetReturnItems(List<OExpression> returnItems) voidsetReturnNestedProjections(List<ONestedProjection> returnNestedProjections) voidvoidvoidtoGenericStatement(StringBuilder builder) voidtoString(Map<Object, Object> params, StringBuilder builder) Methods inherited from class com.orientechnologies.orient.core.sql.parser.OStatement
deserialize, deserializeFromOResult, execute, execute, execute, execute, executinPlanCanBeCached, getOriginalStatement, resolvePlan, serialize, setOriginalStatement, toString, validateMethods inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
dump, getValue, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toGenericStatement, toString
-
Field Details
-
KEYWORD_MATCH
- See Also:
-
matchExpressions
-
notMatchExpressions
-
returnItems
-
returnAliases
-
returnNestedProjections
-
returnDistinct
protected boolean returnDistinct -
groupBy
-
orderBy
-
unwind
-
skip
-
limit
-
pattern
-
-
Constructor Details
-
OMatchStatement
public OMatchStatement() -
OMatchStatement
public OMatchStatement(int id) -
OMatchStatement
-
-
Method Details
-
getReturnNestedProjections
-
setReturnNestedProjections
-
addMatchExpression
-
addNotMatchExpression
-
addReturnNestedProjection
-
addReturnItem
-
addReturnAlias
-
createExecutionPlan
Description copied from class:OStatementcreates an execution plan for current statement, with profiling disabled- Overrides:
createExecutionPlanin classOStatement- Parameters:
ctx- the context that will be used to execute the statement- 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:
isIdempotentin classOStatement
-
toString
- Overrides:
toStringin classOStatement
-
toGenericStatement
- Overrides:
toGenericStatementin classOStatement
-
copy
- Overrides:
copyin classOStatement
-
equals
-
hashCode
public int hashCode() -
getLimit
-
setLimit
-
getReturnAliases
-
setReturnAliases
-
getReturnItems
-
setReturnItems
-
getMatchExpressions
-
setMatchExpressions
-
getNotMatchExpressions
-
setNotMatchExpressions
-
isReturnDistinct
public boolean isReturnDistinct() -
setReturnDistinct
public void setReturnDistinct(boolean returnDistinct) -
getOrderBy
-
setOrderBy
-
getGroupBy
-
setGroupBy
-
getUnwind
-
setUnwind
-
getSkip
-
setSkip
-
refersToParent
public boolean refersToParent()- Overrides:
refersToParentin classOStatement
-