public OInsertBody copy() { OInsertBody result = new OInsertBody(-1); result.identifierList = identifierList == null ? null : identifierList.stream().map(x -> x.copy()).collect(Collectors.toList()); result.valueExpressions = valueExpressions == null ? null : valueExpressions.stream().map(sub -> sub.stream().map(x -> x.copy()).collect(Collectors.toList())) .collect(Collectors.toList()); result.setExpressions = setExpressions == null ? null : setExpressions.stream().map(x -> x.copy()).collect(Collectors.toList()); result.content = content == null ? null : content.copy(); result.contentInputParam = contentInputParam == null ? null : contentInputParam.copy(); return result; }
public OSkip copy() { OSkip result = new OSkip(-1); result.num = num == null ? null : num.copy(); result.inputParam = inputParam == null ? null : inputParam.copy(); return result; }
public OBatch copy() { OBatch result = new OBatch(-1); result.inputParam = inputParam == null ? null : inputParam.copy(); result.num = num == null ? null : num.copy(); return result; }
public OLimit copy() { OLimit result = new OLimit(-1); result.num = num == null ? null : num.copy(); result.inputParam = inputParam == null ? null : inputParam.copy(); return result; }
public OArrayNumberSelector copy() { OArrayNumberSelector result = new OArrayNumberSelector(-1); result.inputValue = inputValue == null ? null : inputValue.copy(); result.expressionValue = expressionValue == null ? null : expressionValue.copy(); result.integer = integer; return result; }
@Override public OMatchesCondition copy() { OMatchesCondition result = new OMatchesCondition(-1); result.expression = expression == null ? null : expression.copy(); result.right = right; result.rightParam = rightParam == null ? null : rightParam.copy(); result.rightExpression = rightExpression == null ? null : rightExpression.copy(); return result; }
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 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; }
@Override public OBaseExpression copy() { OBaseExpression result = new OBaseExpression(-1); result.number = number == null ? null : number.copy(); result.identifier = identifier == null ? null : identifier.copy(); result.inputParam = inputParam == null ? null : inputParam.copy(); result.string = string; result.modifier = modifier == null ? null : modifier.copy(); return result; }
@Override public ONotInCondition copy() { ONotInCondition result = new ONotInCondition(-1); result.operator = operator == null ? null : (OBinaryCompareOperator) operator.copy(); result.left = left == null ? null : left.copy(); result.rightMathExpression = rightMathExpression == null ? null : rightMathExpression.copy(); result.rightStatement = rightStatement == null ? null : rightStatement.copy(); result.rightParam = rightParam == null ? null : rightParam.copy(); result.right = right == null ? null : right; return result; }
@Override public OInCondition copy() { OInCondition result = new OInCondition(-1); result.operator = operator == null ? null : (OBinaryCompareOperator) operator.copy(); result.left = left == null ? null : left.copy(); result.rightMathExpression = rightMathExpression == null ? null : rightMathExpression.copy(); result.rightStatement = rightStatement == null ? null : rightStatement.copy(); result.rightParam = rightParam == null ? null : rightParam.copy(); result.right = right == null ? null : right; return result; }
} else if (((OInCondition) exp).getRightParam() != null) { OBaseExpression e = new OBaseExpression(-1); e.setInputParam(((OInCondition) exp).getRightParam().copy()); item.setMathExpression(e); result.add(item);
} else if (((OInCondition) exp).getRightParam() != null) { OBaseExpression e = new OBaseExpression(-1); e.setInputParam(((OInCondition) exp).getRightParam().copy()); item.setMathExpression(e); result.add(item);
OInCondition condition = new OInCondition(-1); condition.setLeft(left); condition.setRightParam(((OInCondition) singleExp).getRightParam().copy()); indexKeyValue.getSubBlocks().add(condition); blockIterator.remove();