Package com.arcadedb.query.sql.executor
Class IfStep
- java.lang.Object
-
- com.arcadedb.query.sql.executor.AbstractExecutionStep
-
- com.arcadedb.query.sql.executor.IfStep
-
- All Implemented Interfaces:
ExecutionStep
,ExecutionStepInternal
public class IfStep extends AbstractExecutionStep
Created by luigidellaquila on 19/09/16.
-
-
Field Summary
Fields Modifier and Type Field Description List<Statement>
negativeStatements
List<Statement>
positiveStatements
-
Fields inherited from class com.arcadedb.query.sql.executor.AbstractExecutionStep
ctx, next, prev, profilingEnabled, timedOut
-
-
Constructor Summary
Constructors Constructor Description IfStep(CommandContext ctx, boolean profilingEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanExpression
getCondition()
ScriptExecutionPlan
getNegativePlan()
ScriptExecutionPlan
getPositivePlan()
protected void
init(CommandContext ctx)
void
initNegativePlan(CommandContext ctx)
void
initPositivePlan(CommandContext ctx)
void
setCondition(BooleanExpression condition)
void
setNegativePlan(ScriptExecutionPlan negativePlan)
void
setPositivePlan(ScriptExecutionPlan positivePlan)
ResultSet
syncPull(CommandContext ctx, int nRecords)
-
Methods inherited from class com.arcadedb.query.sql.executor.AbstractExecutionStep
close, getContext, getCostFormatted, getNext, getPrev, isProfilingEnabled, isTimedOut, sendTimeout, setNext, setPrevious, setProfilingEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.arcadedb.query.sql.executor.ExecutionStep
getCost, toResult
-
Methods inherited from interface com.arcadedb.query.sql.executor.ExecutionStepInternal
canBeCached, copy, deserialize, getDescription, getName, getSubExecutionPlans, getSubSteps, getTargetNode, getType, prettyPrint, reset, serialize
-
-
-
-
Constructor Detail
-
IfStep
public IfStep(CommandContext ctx, boolean profilingEnabled)
-
-
Method Detail
-
syncPull
public ResultSet syncPull(CommandContext ctx, int nRecords) throws TimeoutException
- Throws:
TimeoutException
-
init
protected void init(CommandContext ctx)
-
initPositivePlan
public void initPositivePlan(CommandContext ctx)
-
initNegativePlan
public void initNegativePlan(CommandContext ctx)
-
getCondition
public BooleanExpression getCondition()
-
setCondition
public void setCondition(BooleanExpression condition)
-
getPositivePlan
public ScriptExecutionPlan getPositivePlan()
-
setPositivePlan
public void setPositivePlan(ScriptExecutionPlan positivePlan)
-
getNegativePlan
public ScriptExecutionPlan getNegativePlan()
-
setNegativePlan
public void setNegativePlan(ScriptExecutionPlan negativePlan)
-
-