public class OTraverseContext extends OBasicCommandContext
OCommandContext.TIMEOUT_STRATEGY
args, child, database, declaredScriptVariables, EXECUTION_BEGUN, inputParameters, INVALID_COMPARE_COUNT, parent, recordMetrics, resultsProcessed, TIMEOUT_MS, TIMEOUT_STRATEGY, uniqueResult, variables
Constructor and Description |
---|
OTraverseContext() |
Modifier and Type | Method and Description |
---|---|
void |
addTraversed(OIdentifiable identity,
int iLevel) |
int |
getDepth() |
String |
getPath() |
Object |
getVariable(String iName) |
Map<String,Object> |
getVariables()
Returns a read-only map with all the variables.
|
boolean |
isAlreadyTraversed(OIdentifiable identity,
int iLevel) |
boolean |
isEmpty() |
OTraverseAbstractProcess<?> |
next() |
void |
pop(OIdentifiable currentRecord) |
void |
push(OTraverseAbstractProcess<?> iProcess) |
void |
reset() |
void |
setStrategy(OTraverse.STRATEGY strategy) |
addToUniqueResult, beginExecution, checkTimeout, copy, declareScriptVariable, getDatabase, getInputParameters, getParent, getResultsProcessed, getVariable, getVariableFromParentHierarchy, incrementVariable, isRecordingMetrics, isScriptVariableDeclared, merge, setChild, setDatabase, setInputParameters, setParent, setParentWithoutOverridingChild, setRecordingMetrics, setVariable, toString, updateMetric
public void push(OTraverseAbstractProcess<?> iProcess)
public Map<String,Object> getVariables()
OBasicCommandContext
getVariables
in interface OCommandContext
getVariables
in class OBasicCommandContext
public Object getVariable(String iName)
getVariable
in interface OCommandContext
getVariable
in class OBasicCommandContext
public void pop(OIdentifiable currentRecord)
public OTraverseAbstractProcess<?> next()
public boolean isEmpty()
public void reset()
public boolean isAlreadyTraversed(OIdentifiable identity, int iLevel)
public void addTraversed(OIdentifiable identity, int iLevel)
public String getPath()
public int getDepth()
public void setStrategy(OTraverse.STRATEGY strategy)
Copyright © 2009–2020 OrientDB. All rights reserved.