
public class CheckClassTypeStep extends AbstractExecutionStep
This step is used just as a gate check for classes (eg. for CREATE VERTEX to make sure that the passed class is a vertex class).
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, setProfilingEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbasicDeserialize, basicSerialize, deserialize, getDescription, getIndent, getName, getSubExecutionPlans, getSubSteps, getTargetNode, getType, reset, serializetoResultpublic 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
OTimeoutExceptionpublic String prettyPrint(int depth, int indent)
public long getCost()
OExecutionSteppublic OExecutionStep copy(OCommandContext ctx)
public boolean canBeCached()
Copyright © 2009–2025 OrientDB. All rights reserved.