Package com.arcadedb.query.sql.parser
Class CreateEdgeStatement
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.Statement
-
- com.arcadedb.query.sql.parser.CreateEdgeStatement
-
-
Field Summary
Fields Modifier and Type Field Description protected InsertBody
body
protected boolean
ifNotExists
protected Expression
leftExpression
protected Number
retry
protected Expression
rightExpression
protected Identifier
targetBucketName
protected Identifier
targetType
protected Number
wait
-
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 CreateEdgeStatement(int id)
CreateEdgeStatement(SqlParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateEdgeStatement
copy()
InsertExecutionPlan
createExecutionPlan(CommandContext ctx, boolean enableProfiling)
creates an execution plan for current statementboolean
equals(Object o)
ResultSet
execute(Database db, Object[] args, CommandContext parentCtx, boolean usePlanCache)
ResultSet
execute(Database db, Map params, CommandContext parentCtx, boolean usePlanCache)
InsertBody
getBody()
Expression
getLeftExpression()
Number
getRetry()
Expression
getRightExpression()
Identifier
getTargetBucketName()
Identifier
getTargetType()
Number
getWait()
int
hashCode()
boolean
ifNotExists()
void
toString(Map<String,Object> params, StringBuilder builder)
-
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, isIdempotent, 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
-
targetType
protected Identifier targetType
-
targetBucketName
protected Identifier targetBucketName
-
leftExpression
protected Expression leftExpression
-
rightExpression
protected Expression rightExpression
-
body
protected InsertBody body
-
retry
protected Number retry
-
wait
protected Number wait
-
ifNotExists
protected boolean ifNotExists
-
-
Constructor Detail
-
CreateEdgeStatement
public CreateEdgeStatement(int id)
-
CreateEdgeStatement
public CreateEdgeStatement(SqlParser p, int id)
-
-
Method Detail
-
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 InsertExecutionPlan 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
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
-
copy
public CreateEdgeStatement copy()
-
getTargetType
public Identifier getTargetType()
-
getTargetBucketName
public Identifier getTargetBucketName()
-
getLeftExpression
public Expression getLeftExpression()
-
getRightExpression
public Expression getRightExpression()
-
ifNotExists
public boolean ifNotExists()
-
getBody
public InsertBody getBody()
-
getRetry
public Number getRetry()
-
getWait
public Number getWait()
-
-