Class OTraverse
java.lang.Object
com.orientechnologies.orient.core.command.traverse.OTraverse
- All Implemented Interfaces:
OCommand,Iterable<OIdentifiable>,Iterator<OIdentifiable>
public class OTraverse
extends Object
implements OCommand, Iterable<OIdentifiable>, Iterator<OIdentifiable>
Base class for traversing.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()Executes command.fields(Collection<Object> iFields) longgetLimit()intlongIterator<? extends OIdentifiable>booleanhasNext()iterator()limit(long iLimit) next()predicate(OCommandPredicate iPredicate) voidremove()voidsetMaxDepth(int maxDepth) voidsetStrategy(OTraverse.STRATEGY strategy) target(OIdentifiable... iRecords) target(Iterable<? extends OIdentifiable> iTarget) target(Iterator<? extends OIdentifiable> iTarget) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
OTraverse
public OTraverse()
-
-
Method Details
-
execute
Description copied from interface:OCommandExecutes command. -
nextProcess
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<OIdentifiable>
-
next
- Specified by:
nextin interfaceIterator<OIdentifiable>
-
remove
public void remove()- Specified by:
removein interfaceIterator<OIdentifiable>
-
iterator
- Specified by:
iteratorin interfaceIterable<OIdentifiable>
-
getContext
- Specified by:
getContextin interfaceOCommand
-
target
-
target
-
target
-
getTarget
-
predicate
-
getPredicate
-
field
-
fields
-
fields
-
getFields
-
getLimit
public long getLimit() -
limit
-
toString
-
getResultCount
public long getResultCount() -
getLastTraversed
-
getStrategy
-
setStrategy
-
getMaxDepth
public int getMaxDepth() -
setMaxDepth
public void setMaxDepth(int maxDepth)
-