
public class OMatchStatement extends OStatement implements OCommandExecutor, OIterableRecordSource
| Modifier and Type | Class and Description |
|---|---|
static class |
OMatchStatement.EdgeTraversal |
static class |
OMatchStatement.MatchExecutionPlan |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEYWORD_MATCH |
protected OLimit |
limit |
protected List<OMatchExpression> |
matchExpressions |
protected com.orientechnologies.orient.core.sql.parser.Pattern |
pattern |
protected List<OIdentifier> |
returnAliases |
protected List<OExpression> |
returnItems |
CUSTOM_STRICT_SQLchildren, firstToken, id, lastToken, parent, parser, value| Constructor and Description |
|---|
OMatchStatement() |
OMatchStatement(int id) |
OMatchStatement(OrientSql p,
int id) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Map<Object,Object> iArgs)
this method works statefully, using request and context variables from current Match statement.
|
Object |
execute(OSQLAsynchQuery<ODocument> request,
OCommandContext context,
OProgressListener progressListener)
executes the match statement.
|
OCommandContext |
getContext() |
long |
getDistributedTimeout() |
String |
getFetchPlan() |
Set<String> |
getInvolvedClusters()
Returns the involved clusters.
|
Map<Object,Object> |
getParameters() |
protected Object |
getResult(OSQLAsynchQuery<ODocument> request) |
int |
getSecurityOperationType()
Returns the security operation type use to check about security.
|
String |
getSyntax() |
boolean |
involveSchema() |
boolean |
isCacheable()
Returns true if the command results can be cached.
|
boolean |
isIdempotent()
Returns true if the command doesn't change the database, otherwise false.
|
boolean |
isLocalExecution()
Returns true if the command must be executed on local node on distributed configuration.
|
Iterator<OIdentifiable> |
iterator(Map<Object,Object> iArgs) |
Object |
jjtAccept(OrientSqlVisitor visitor,
Object data)
Accept the visitor.
|
Object |
mergeResults(Map<String,Object> results) |
<RET extends OCommandExecutor> |
parse(OCommandRequest iRequest)
this method parses the statement
|
void |
setContext(OCommandContext context) |
<RET extends OCommandExecutor> |
setLimit(int iLimit) |
<RET extends OCommandExecutor> |
setProgressListener(OProgressListener progressListener)
Set the listener invoked while the command is executing.
|
void |
toString(Map<Object,Object> params,
StringBuilder builder) |
toString, validatechildrenAccept, dump, getDatabase, getValue, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toStringpublic static final String KEYWORD_MATCH
protected List<OMatchExpression> matchExpressions
protected List<OExpression> returnItems
protected List<OIdentifier> returnAliases
protected OLimit limit
protected com.orientechnologies.orient.core.sql.parser.Pattern pattern
public OMatchStatement()
public OMatchStatement(int id)
public OMatchStatement(OrientSql p, int id)
public Object jjtAccept(OrientSqlVisitor visitor, Object data)
jjtAccept in interface NodejjtAccept in class OStatementpublic <RET extends OCommandExecutor> RET parse(OCommandRequest iRequest)
parse in interface OCommandExecutorRET - iRequest - Command request implementation.#execute(Mappublic Object execute(Map<Object,Object> iArgs)
execute in interface OCommandExecutoriArgs - Optional variable arguments to pass to the command.OCommandExecutor.parse(OCommandRequest)public Object execute(OSQLAsynchQuery<ODocument> request, OCommandContext context, OProgressListener progressListener)
execute in class OStatementrequest - context - protected Object getResult(OSQLAsynchQuery<ODocument> request)
public <RET extends OCommandExecutor> RET setProgressListener(OProgressListener progressListener)
OCommandExecutorsetProgressListener in interface OCommandExecutorprogressListener - OProgressListener implementationpublic <RET extends OCommandExecutor> RET setLimit(int iLimit)
setLimit in interface OCommandExecutorpublic String getFetchPlan()
getFetchPlan in interface OCommandExecutorpublic Map<Object,Object> getParameters()
getParameters in interface OCommandExecutorpublic OCommandContext getContext()
getContext in interface OCommandExecutorpublic void setContext(OCommandContext context)
setContext in interface OCommandExecutorpublic boolean isIdempotent()
OCommandExecutorisIdempotent in interface OCommandExecutorpublic Set<String> getInvolvedClusters()
OCommandExecutorgetInvolvedClusters in interface OCommandExecutorpublic int getSecurityOperationType()
OCommandExecutorgetSecurityOperationType in interface OCommandExecutorPERMISSION_*public boolean involveSchema()
involveSchema in interface OCommandExecutorpublic String getSyntax()
getSyntax in interface OCommandExecutorpublic boolean isLocalExecution()
OCommandExecutorisLocalExecution in interface OCommandExecutorpublic boolean isCacheable()
OCommandExecutorisCacheable in interface OCommandExecutorpublic long getDistributedTimeout()
getDistributedTimeout in interface OCommandExecutorpublic Object mergeResults(Map<String,Object> results) throws Exception
mergeResults in interface OCommandExecutorExceptionpublic void toString(Map<Object,Object> params, StringBuilder builder)
toString in class OStatementpublic Iterator<OIdentifiable> iterator(Map<Object,Object> iArgs)
iterator in interface OIterableRecordSourceCopyright © 2009–2025 OrientDB. All rights reserved.