public class CheckClassTypeStep extends AbstractExecutionStep
It accepts two values: a target class and a parent class. If the two classes are the same or if the parent class is indeed a parent class of the target class, then the syncPool() returns an empty result set, otherwise it throws an OCommandExecutionException
ctx, next, prev, profilingEnabled, timedOut
Constructor and Description |
---|
CheckClassTypeStep(String targetClass,
String parentClass,
OCommandContext ctx,
boolean profilingEnabled) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeCached() |
OExecutionStep |
copy(OCommandContext ctx) |
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, deserialize, getDescription, getIndent, getName, getSubExecutionPlans, getSubSteps, getTargetNode, getType, reset, serialize
toResult
public CheckClassTypeStep(String targetClass, String parentClass, OCommandContext ctx, boolean profilingEnabled)
targetClass
- a class to be checkedparentClass
- a class that is supposed to be the same or a parent class of the target
classctx
- execuiton contextprofilingEnabled
- true to collect execution statspublic OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException
OTimeoutException
public String prettyPrint(int depth, int indent)
public long getCost()
OExecutionStep
public OExecutionStep copy(OCommandContext ctx)
public boolean canBeCached()
Copyright © 2009–2020 OrientDB. All rights reserved.