Class OTraverseContext
java.lang.Object
com.orientechnologies.orient.core.command.OBasicCommandContext
com.orientechnologies.orient.core.command.traverse.OTraverseContext
- All Implemented Interfaces:
OCommandContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.command.OCommandContext
OCommandContext.TIMEOUT_STRATEGY -
Field Summary
Fields inherited from class com.orientechnologies.orient.core.command.OBasicCommandContext
args, child, database, declaredScriptVariables, EXECUTION_BEGUN, inputParameters, INVALID_COMPARE_COUNT, parent, recordMetrics, resultsProcessed, TIMEOUT_MS, TIMEOUT_STRATEGY, uniqueResult, variables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTraversed(OIdentifiable identity, int iLevel) intgetDepth()getPath()getVariable(String iName) Returns a read-only map with all the variables.booleanisAlreadyTraversed(OIdentifiable identity, int iLevel) booleanisEmpty()next()voidpop(OIdentifiable currentRecord) voidpush(OTraverseAbstractProcess<?> iProcess) voidreset()voidsetStrategy(OTraverse.STRATEGY strategy) Methods inherited from class com.orientechnologies.orient.core.command.OBasicCommandContext
addToUniqueResult, beginExecution, checkTimeout, copy, declareScriptVariable, getDatabase, getInputParameters, getParent, getResultsProcessed, getVariable, getVariableFromParentHierarchy, incrementVariable, isRecordingMetrics, isScriptVariableDeclared, merge, setChild, setDatabase, setDynamicVariable, setInputParameters, setParent, setParentWithoutOverridingChild, setRecordingMetrics, setVariable, toString, updateMetric
-
Constructor Details
-
OTraverseContext
public OTraverseContext()
-
-
Method Details
-
push
-
getVariables
Description copied from class:OBasicCommandContextReturns a read-only map with all the variables.- Specified by:
getVariablesin interfaceOCommandContext- Overrides:
getVariablesin classOBasicCommandContext
-
getVariable
- Specified by:
getVariablein interfaceOCommandContext- Overrides:
getVariablein classOBasicCommandContext
-
pop
-
next
-
isEmpty
public boolean isEmpty() -
reset
public void reset() -
isAlreadyTraversed
-
addTraversed
-
getPath
-
getDepth
public int getDepth() -
setStrategy
-