public class CheckClusterTypeStep extends AbstractExecutionStep
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
ctx, next, prev, profilingEnabled, timedOut
Constructor and Description |
---|
CheckClusterTypeStep(OCluster targetCluster,
String clazz,
OCommandContext ctx,
boolean profilingEnabled) |
CheckClusterTypeStep(String targetClusterName,
String clazz,
OCommandContext ctx,
boolean profilingEnabled) |
Modifier and Type | Method and Description |
---|---|
long |
getCost()
returns the absolute cost (in nanoseconds) of the execution of this step
|
String |
prettyPrint(int depth,
int indent) |
OResultSet |
syncPull(OCommandContext ctx,
int nRecords) |
close, getContext, getCostFormatted, getNext, getPrev, isProfilingEnabled, sendTimeout, setNext, setPrevious, setProfilingEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
basicDeserialize, basicSerialize, canBeCached, copy, deserialize, getDescription, getIndent, getName, getSubExecutionPlans, getSubSteps, getTargetNode, getType, reset, serialize
toResult
public CheckClusterTypeStep(String targetClusterName, String clazz, OCommandContext ctx, boolean profilingEnabled)
public CheckClusterTypeStep(OCluster targetCluster, String clazz, OCommandContext ctx, boolean profilingEnabled)
public OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException
OTimeoutException
public String prettyPrint(int depth, int indent)
public long getCost()
OExecutionStep
Copyright © 2009–2020 OrientDB. All rights reserved.