Class CheckClusterTypeStep
java.lang.Object
com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
com.orientechnologies.orient.core.sql.executor.CheckClusterTypeStep
- All Implemented Interfaces:
OExecutionStep,OExecutionStepInternal
This step is used just as a gate check to verify that a cluster belongs to a class.
It accepts two values: a target cluster (name or OCluster) and a class. If the cluster belongs to the class, then the syncPool() returns an empty result set, otherwise it throws an OCommandExecutionException
- Author:
- Luigi Dell'Aquila (luigi.dellaquila - at - orientdb.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
ctx, next, prev, profilingEnabled, timedOut -
Constructor Summary
ConstructorsConstructorDescriptionCheckClusterTypeStep(OCluster targetCluster, String clazz, OCommandContext ctx, boolean profilingEnabled) CheckClusterTypeStep(String targetClusterName, String clazz, OCommandContext ctx, boolean profilingEnabled) -
Method Summary
Modifier and TypeMethodDescriptionlonggetCost()returns the absolute cost (in nanoseconds) of the execution of this stepprettyPrint(int depth, int indent) syncPull(OCommandContext ctx, int nRecords) Methods inherited from class com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
close, getContext, getCostFormatted, getNext, getPrev, isProfilingEnabled, sendTimeout, setNext, setPrevious, setProfilingEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.sql.executor.OExecutionStep
toResultMethods inherited from interface com.orientechnologies.orient.core.sql.executor.OExecutionStepInternal
canBeCached, copy, deserialize, getDescription, getName, getSubExecutionPlans, getSubSteps, getTargetNode, getType, reset, serialize
-
Constructor Details
-
CheckClusterTypeStep
public CheckClusterTypeStep(String targetClusterName, String clazz, OCommandContext ctx, boolean profilingEnabled) -
CheckClusterTypeStep
public CheckClusterTypeStep(OCluster targetCluster, String clazz, OCommandContext ctx, boolean profilingEnabled)
-
-
Method Details
-
syncPull
- Throws:
OTimeoutException
-
prettyPrint
-
getCost
public long getCost()Description copied from interface:OExecutionStepreturns the absolute cost (in nanoseconds) of the execution of this step- Returns:
- the absolute cost (in nanoseconds) of the execution of this step, -1 if not calculated
-