public OBatch copy() { OBatch result = new OBatch(-1); result.inputParam = inputParam == null ? null : inputParam.copy(); result.num = num == null ? null : num.copy(); return result; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ODeleteVertexStatement that = (ODeleteVertexStatement) o; if (from != that.from) return false; if (returnBefore != that.returnBefore) return false; if (fromClause != null ? !fromClause.equals(that.fromClause) : that.fromClause != null) return false; if (whereClause != null ? !whereClause.equals(that.whereClause) : that.whereClause != null) return false; if (limit != null ? !limit.equals(that.limit) : that.limit != null) return false; if (batch != null ? !batch.equals(that.batch) : that.batch != null) return false; return true; }
public BatchStep(OBatch batch, OCommandContext ctx, boolean profilingEnabled) { super(ctx, profilingEnabled); batchSize = batch.evaluate(ctx); }
final public OBatch Batch() throws ParseException { OBatch jjtn000 = new OBatch(JJTBATCH); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); jjtn000.jjtSetFirstToken(getToken(1)); try { jj_consume_token(BATCH); jjtn000.jjtSetLastToken(getToken(0)); {if (true) return jjtn000;} } catch (Throwable jjte000) { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); jjtn000.jjtSetLastToken(getToken(0));
@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 int hashCode() { int result = (from ? 1 : 0); result = 31 * result + (fromClause != null ? fromClause.hashCode() : 0); result = 31 * result + (whereClause != null ? whereClause.hashCode() : 0); result = 31 * result + (returnBefore ? 1 : 0); result = 31 * result + (limit != null ? limit.hashCode() : 0); result = 31 * result + (batch != null ? batch.hashCode() : 0); return result; }
public void toString(Map<Object, Object> params, StringBuilder builder) { builder.append("DELETE VERTEX "); if (from) { builder.append("FROM "); } fromClause.toString(params, builder); if (returnBefore) { builder.append(" RETURN BEFORE"); } if (whereClause != null) { builder.append(" WHERE "); whereClause.toString(params, builder); } if (limit != null) { limit.toString(params, builder); } if (batch != null) { batch.toString(params, builder); } }
@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 int hashCode() { int result = targetClass != null ? targetClass.hashCode() : 0; result = 31 * result + (targetClusterName != null ? targetClusterName.hashCode() : 0); result = 31 * result + (upsert ? 1 : 0); result = 31 * result + (leftExpression != null ? leftExpression.hashCode() : 0); result = 31 * result + (rightExpression != null ? rightExpression.hashCode() : 0); result = 31 * result + (body != null ? body.hashCode() : 0); result = 31 * result + (retry != null ? retry.hashCode() : 0); result = 31 * result + (wait != null ? wait.hashCode() : 0); result = 31 * result + (batch != null ? batch.hashCode() : 0); return result; }
public void toString(Map<Object, Object> params, StringBuilder builder) { builder.append("MOVE VERTEX "); source.toString(params, builder); builder.append(" TO "); if (targetCluster != null) { targetCluster.toString(params, builder); } else { builder.append("CLASS:"); targetClass.toString(params, builder); } if (updateOperations != null) { builder.append(" "); updateOperations.toString(params, builder); } if (batch != null) { builder.append(" "); batch.toString(params, builder); } }
@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 int hashCode() { int result = source.hashCode(); result = 31 * result + (targetCluster != null ? targetCluster.hashCode() : 0); result = 31 * result + (targetClass != null ? targetClass.hashCode() : 0); result = 31 * result + (updateOperations != null ? updateOperations.hashCode() : 0); result = 31 * result + (batch != null ? batch.hashCode() : 0); return result; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; OMoveVertexStatement that = (OMoveVertexStatement) o; if (!source.equals(that.source)) return false; if (targetCluster != null ? !targetCluster.equals(that.targetCluster) : that.targetCluster != null) return false; if (targetClass != null ? !targetClass.equals(that.targetClass) : that.targetClass != null) return false; if (updateOperations != null ? !updateOperations.equals(that.updateOperations) : that.updateOperations != null) return false; return batch != null ? batch.equals(that.batch) : that.batch == null; }
batch.toString(params, builder);
@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 int hashCode() { int result = className != null ? className.hashCode() : 0; result = 31 * result + (targetClusterName != null ? targetClusterName.hashCode() : 0); result = 31 * result + (rid != null ? rid.hashCode() : 0); result = 31 * result + (rids != null ? rids.hashCode() : 0); result = 31 * result + (leftExpression != null ? leftExpression.hashCode() : 0); result = 31 * result + (rightExpression!= null ? rightExpression.hashCode() : 0); result = 31 * result + (whereClause != null ? whereClause.hashCode() : 0); result = 31 * result + (limit != null ? limit.hashCode() : 0); result = 31 * result + (batch != null ? batch.hashCode() : 0); return result; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; OCreateEdgeStatement that = (OCreateEdgeStatement) o; if (upsert != that.upsert) return false; if (targetClass != null ? !targetClass.equals(that.targetClass) : that.targetClass != null) return false; if (targetClusterName != null ? !targetClusterName.equals(that.targetClusterName) : that.targetClusterName != null) return false; if (leftExpression != null ? !leftExpression.equals(that.leftExpression) : that.leftExpression != null) return false; if (rightExpression != null ? !rightExpression.equals(that.rightExpression) : that.rightExpression != null) return false; if (body != null ? !body.equals(that.body) : that.body != null) return false; if (retry != null ? !retry.equals(that.retry) : that.retry != null) return false; if (wait != null ? !wait.equals(that.wait) : that.wait != null) return false; return batch != null ? batch.equals(that.batch) : that.batch == null; }
batch.toString(params, builder);
@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); } }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ODeleteEdgeStatement that = (ODeleteEdgeStatement) o; if (className != null ? !className.equals(that.className) : that.className != null) return false; if (targetClusterName != null ? !targetClusterName.equals(that.targetClusterName) : that.targetClusterName != null) return false; if (rid != null ? !rid.equals(that.rid) : that.rid != null) return false; if (rids != null ? !rids.equals(that.rids) : that.rids != null) return false; if (leftExpression != null ? !leftExpression.equals(that.leftExpression) : that.leftExpression != null) return false; if (rightExpression != null ? !rightExpression.equals(that.rightExpression) : that.rightExpression != null) return false; if (whereClause != null ? !whereClause.equals(that.whereClause) : that.whereClause != null) return false; if (limit != null ? !limit.equals(that.limit) : that.limit != null) return false; if (batch != null ? !batch.equals(that.batch) : that.batch != null) return false; return true; }