@Override public OFindReferencesStatement copy() { OFindReferencesStatement result = new OFindReferencesStatement(-1); result.rid = rid == null ? null : rid.copy(); result.subQuery = subQuery == null ? null : subQuery.copy(); result.targets = targets == null ? null : targets.stream().map(x -> x.copy()).collect(Collectors.toList()); return result; }
@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; }
public OOrderByItem copy() { OOrderByItem result = new OOrderByItem(); result.alias = alias; result.modifier = modifier == null ? null : modifier.copy(); result.recordAttr = recordAttr; result.rid = rid == null ? null : rid.copy(); result.type = type; result.collate = this.collate == null ? null : collate.copy(); return result; }
@Override public OArrayConcatExpressionElement copy() { OArrayConcatExpressionElement result = new OArrayConcatExpressionElement(-1); result.singleQuotes = singleQuotes; result.doubleQuotes = doubleQuotes; result.isNull = isNull; result.rid = rid == null ? null : rid.copy(); result.mathExpression = mathExpression == null ? null : mathExpression.copy(); result.json = json == null ? null : json.copy(); result.booleanValue = booleanValue; return result; }
public OFindReferencesExecutionPlanner(OFindReferencesStatement statement) { //copying the content, so that it can be manipulated and optimized this.rid = statement.getRid() == null ? null : statement.getRid().copy(); this.subQuery = statement.getSubQuery() == null ? null : statement.getSubQuery().copy(); this.targets = statement.getTargets() == null ? null : statement.getTargets().stream().map(x -> x.copy()).collect(Collectors.toList()); }
public OFromItem copy() { OFromItem result = new OFromItem(-1); if (rids != null) { result.rids = rids.stream().map(r -> r.copy()).collect(Collectors.toList()); } if (inputParams != null) { result.inputParams = inputParams.stream().map(r -> r.copy()).collect(Collectors.toList()); } result.cluster = cluster == null ? null : cluster.copy(); result.clusterList = clusterList == null ? null : clusterList.copy(); result.index = index == null ? null : index.copy(); result.metadata = metadata == null ? null : metadata.copy(); result.statement = statement == null ? null : statement.copy(); result.inputParam = inputParam == null ? null : inputParam.copy(); result.identifier = identifier == null ? null : identifier.copy(); result.functionCall = functionCall == null ? null : functionCall.copy(); result.modifier = modifier == null ? null : modifier.copy(); return result; }
public OExpression copy() { OExpression result = new OExpression(-1); result.singleQuotes = singleQuotes; result.doubleQuotes = doubleQuotes; result.isNull = isNull; result.rid = rid == null ? null : rid.copy(); result.mathExpression = mathExpression == null ? null : mathExpression.copy(); result.arrayConcatExpression = arrayConcatExpression == null ? null : arrayConcatExpression.copy(); result.json = json == null ? null : json.copy(); result.booleanValue = booleanValue; return result; }
public OArraySelector copy() { OArraySelector result = new OArraySelector(-1); result.rid = rid == null ? null : rid.copy(); result.inputParam = inputParam == null ? null : inputParam.copy(); result.expression = expression == null ? null : expression.copy(); result.integer = integer == null ? null : integer.copy(); return result; }
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(); }
@Override public OMatchFilterItem copy() { OMatchFilterItem result = new OMatchFilterItem(-1); result.className = className == null ? null : className.copy(); result.classNames = classNames == null ? null : classNames.copy(); result.clusterName = clusterName == null ? null : clusterName.copy(); result.clusterId = clusterId == null ? null : clusterId.copy(); result.rid = rid == null ? null : rid.copy(); result.alias = alias == null ? null : alias.copy(); result.filter = filter == null ? null : filter.copy(); result.whileCondition = whileCondition == null ? null : whileCondition.copy(); result.depth = depth == null ? null : depth.copy(); result.maxDepth = maxDepth == null ? null : maxDepth.copy(); result.optional = optional; result.depthAlias = depthAlias == null ? null : depthAlias.copy(); result.pathAlias = pathAlias == null ? null : pathAlias.copy(); return result; }
} else if (item.getRid() != null) { OExpression exp = new OExpression(-1); exp.setRid(item.getRid().copy()); newProj.setExpression(exp);