@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 OCreateFunctionStatement copy() { OCreateFunctionStatement result = new OCreateFunctionStatement(-1); result.name = name == null ? null : name.copy(); result.codeQuoted = codeQuoted; result.code = code; result.parameters = parameters == null ? null : parameters.stream().map(x -> x.copy()).collect(Collectors.toList()); result.idempotent = idempotent; result.language = language == null ? null : language.copy(); return result; }
@Override public OCreatePropertyStatement copy() { OCreatePropertyStatement result = new OCreatePropertyStatement(-1); result.className = className == null ? null : className.copy(); result.propertyName = propertyName == null ? null : propertyName.copy(); result.propertyType = propertyType == null ? null : propertyType.copy(); result.linkedType = linkedType == null ? null : linkedType.copy(); result.unsafe = unsafe; result.ifNotExists = ifNotExists; result.attributes = attributes == null ? null : attributes.stream().map(x -> x.copy()).collect(Collectors.toList()); return result; }
@Override public OAlterPropertyStatement copy() { OAlterPropertyStatement result = new OAlterPropertyStatement(-1); result.className = className == null ? null : className.copy(); result.propertyName = propertyName == null ? null : propertyName.copy(); result.customPropertyName = customPropertyName == null ? null : customPropertyName.copy(); result.customPropertyValue = customPropertyValue == null ? null : customPropertyValue.copy(); result.settingName = settingName == null ? null : settingName.copy(); result.settingValue = settingValue == null ? null : settingValue.copy(); return result; }
@Override public OCreateIndexStatement copy() { OCreateIndexStatement result = new OCreateIndexStatement(-1); result.name = name == null ? null : name.copy(); result.className = className == null ? null : className.copy(); result.propertyList = propertyList == null ? null : propertyList.stream().map(x -> x.copy()).collect(Collectors.toList()); result.type = type == null ? null : type.copy(); result.engine = engine == null ? null : engine.copy(); result.keyTypes = keyTypes == null ? null : keyTypes.stream().map(x -> x.copy()).collect(Collectors.toList()); result.metadata = metadata == null ? null : metadata.copy(); return result; }
@Override public OBeginStatement copy() { OBeginStatement result = new OBeginStatement(-1); result.isolation = isolation == null ? null : isolation.copy(); return result; }
@Override public OExecutionStep copy(OCommandContext ctx) { return new FilterByClassStep(this.identifier.copy(), ctx, this.profilingEnabled); } }
public OUnwind copy() { OUnwind result = new OUnwind(-1); result.items = items.stream().map(x -> x.copy()).collect(Collectors.toList()); return result; }
@Override public ODropClassStatement copy() { ODropClassStatement result = new ODropClassStatement(-1); result.name = name == null ? null : name.copy(); result.ifExists = ifExists; result.unsafe = unsafe; return result; }
@Override public ODropSequenceStatement copy() { ODropSequenceStatement result = new ODropSequenceStatement(-1); result.name = name == null ? null : name.copy(); result.ifExists = this.ifExists; return result; }
@Override public OGrantStatement copy() { OGrantStatement result = new OGrantStatement(-1); result.permission = permission == null ? null : permission.copy(); this.resourceChain = resourceChain == null ? null : resourceChain.stream().map(x -> x.copy()).collect(Collectors.toList()); this.actor = actor == null ? null : actor.copy(); return result; }
@Override public OStatement copy() { OForEachBlock result = new OForEachBlock(-1); result.loopVariable = loopVariable.copy(); result.loopValues = loopValues.copy(); result.statements = statements.stream().map(x -> x.copy()).collect(Collectors.toList()); return result; }
@Override public OTruncateClusterStatement copy() { OTruncateClusterStatement result = new OTruncateClusterStatement(-1); result.clusterName = clusterName == null ? null : clusterName.copy(); result.clusterNumber = clusterNumber == null ? null : clusterNumber.copy(); result.unsafe = unsafe; return result; }
public OCreatePropertyAttributeStatement copy() { OCreatePropertyAttributeStatement result = new OCreatePropertyAttributeStatement(-1); result.settingName = settingName == null ? null : settingName.copy(); result.settingValue = settingValue == null ? null : settingValue.copy(); return result; }
public OProjectionItem copy() { OProjectionItem result = new OProjectionItem(-1); result.all = all; result.alias = alias == null ? null : alias.copy(); result.expression = expression == null ? null : expression.copy(); result.nestedProjection = nestedProjection == null ? null : nestedProjection.copy(); result.aggregate = aggregate; return result; }
@Override public OAlterSequenceStatement copy() { OAlterSequenceStatement result = new OAlterSequenceStatement(-1); result.name = name == null ? null : name.copy(); result.start = start == null ? null : start.copy(); result.increment = increment == null ? null : increment.copy(); result.cache = cache == null ? null : cache.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; }
public OCreateVertexExecutionPlanner(OCreateVertexStatement statement) { this.targetClass = statement.getTargetClass() == null ? null : statement.getTargetClass().copy(); this.targetClusterName = statement.getTargetClusterName() == null ? null : statement.getTargetClusterName().copy(); this.targetCluster = statement.getTargetCluster() == null ? null : statement.getTargetCluster().copy(); if (this.targetClass == null && this.targetCluster == null && this.targetClusterName == null) { this.targetClass = new OIdentifier("V"); } this.insertBody = statement.getInsertBody() == null ? null : statement.getInsertBody().copy(); this.returnStatement = statement.getReturnStatement() == null ? null : statement.getReturnStatement().copy(); }
public OInsertExecutionPlanner(OInsertStatement statement) { this.targetClass = statement.getTargetClass() == null ? null : statement.getTargetClass().copy(); this.targetClusterName = statement.getTargetClusterName() == null ? null : statement.getTargetClusterName().copy(); this.targetCluster = statement.getTargetCluster() == null ? null : statement.getTargetCluster().copy(); this.targetIndex = statement.getTargetIndex() == null ? null : statement.getTargetIndex().copy(); this.insertBody = statement.getInsertBody() == null ? null : statement.getInsertBody().copy(); this.returnStatement = statement.getReturnStatement() == null ? null : statement.getReturnStatement().copy(); this.selectStatement = statement.getSelectStatement() == null ? null : statement.getSelectStatement().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(); }