@Override public ODeleteEdgeStatement copy() { ODeleteEdgeStatement result = null; try { result = getClass().getConstructor(Integer.TYPE).newInstance(-1); } catch (Exception e) { throw new RuntimeException(e); } result.className = className == null ? null : className.copy(); result.targetClusterName = targetClusterName == null ? null : targetClusterName.copy(); result.rid = rid == null ? null : rid.copy(); result.rids = rids == null ? null : rids.stream().map(x -> x.copy()).collect(Collectors.toList()); result.leftExpression = leftExpression==null?null:leftExpression.copy(); result.rightExpression = rightExpression==null?null:rightExpression.copy(); result.whereClause = whereClause == null ? null : whereClause.copy(); result.limit = limit == null ? null : limit.copy(); result.batch = batch == null ? null : batch.copy(); return result; }
@Override public OCreateEdgeStatement copy() { OCreateEdgeStatement result = null; try { result = getClass().getConstructor(Integer.TYPE).newInstance(-1); } catch (Exception e) { throw new RuntimeException(e); } result.targetClass = targetClass == null ? null : targetClass.copy(); result.targetClusterName = targetClusterName == null ? null : targetClusterName.copy(); result.upsert = this.upsert; result.leftExpression = leftExpression == null ? null : leftExpression.copy(); result.rightExpression = rightExpression == null ? null : rightExpression.copy(); result.body = body == null ? null : body.copy(); result.retry = retry; result.wait = wait; result.batch = batch == null ? null : batch.copy(); return result; }
@Override public ODeleteVertexStatement copy() { ODeleteVertexStatement result = new ODeleteVertexStatement(-1); result.from = from; result.fromClause = fromClause == null ? null : fromClause.copy(); result.whereClause = whereClause == null ? null : whereClause.copy(); result.returnBefore = returnBefore; result.limit = limit == null ? null : limit.copy(); result.batch = batch == null ? null : batch.copy(); return result; }
@Override public OMoveVertexStatement copy() { OMoveVertexStatement result = new OMoveVertexStatement(-1); result.source = source.copy(); result.targetClass = targetClass == null ? null : targetClass.copy(); result.targetCluster = targetCluster == null ? null : targetCluster.copy(); result.updateOperations = updateOperations == null ? null : updateOperations.copy(); result.batch = batch == null ? null : batch.copy(); return result; }
@Override public OExecutionStep copy(OCommandContext ctx) { return new CreateEdgesStep(targetClass == null ? null : targetClass.copy(), targetCluster == null ? null : targetCluster.copy(), uniqueIndexName, fromAlias == null ? null : fromAlias.copy(), toAlias == null ? null : toAlias.copy(), wait, retry, batch == null ? null : batch.copy(), ctx, profilingEnabled); } }
public ODeleteEdgeExecutionPlanner(ODeleteEdgeStatement stm) { this.className = stm.getClassName() == null ? null : stm.getClassName().copy(); this.targetClusterName = stm.getTargetClusterName() == null ? null : stm.getTargetClusterName().copy(); if (stm.getRid() != null) { this.rids = new ArrayList<>(); rids.add(stm.getRid().copy()); } else { this.rids = stm.getRids() == null ? null : stm.getRids().stream().map(x -> x.copy()).collect(Collectors.toList()); } this.leftExpression = stm.getLeftExpression() == null ? null : stm.getLeftExpression().copy(); this.rightExpression = stm.getRightExpression() == null ? null : stm.getRightExpression().copy(); this.whereClause = stm.getWhereClause() == null ? null : stm.getWhereClause().copy(); this.batch = stm.getBatch() == null ? null : stm.getBatch().copy(); this.limit = stm.getLimit() == null ? null : stm.getLimit().copy(); }
public OCreateEdgeExecutionPlanner(OCreateEdgeStatement statement) { this.statement = statement; this.targetClass = statement.getTargetClass() == null ? null : statement.getTargetClass().copy(); this.targetClusterName = statement.getTargetClusterName() == null ? null : statement.getTargetClusterName().copy(); this.leftExpression = statement.getLeftExpression() == null ? null : statement.getLeftExpression().copy(); this.rightExpression = statement.getRightExpression() == null ? null : statement.getRightExpression().copy(); this.upsert = statement.isUpsert(); this.body = statement.getBody() == null ? null : statement.getBody().copy(); this.retry = statement.getRetry(); this.wait = statement.getWait(); this.batch = statement.getBatch() == null ? null : statement.getBatch().copy(); }