Package com.arcadedb.graph
Class IteratorFilterBase<T>
- java.lang.Object
-
- com.arcadedb.graph.IteratorFilterBase<T>
-
- Direct Known Subclasses:
EdgeIteratorFilter
,EdgeVertexIteratorFilter
,VertexIteratorFilter
public abstract class IteratorFilterBase<T> extends Object implements Iterator<T>, Iterable<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected EdgeSegment
currentContainer
protected AtomicInteger
currentPosition
protected DatabaseInternal
database
protected RID
next
protected RID
nextEdge
protected RID
nextVertex
protected Set<Integer>
validBuckets
-
Constructor Summary
Constructors Modifier Constructor Description protected
IteratorFilterBase(DatabaseInternal database, EdgeSegment current, String[] edgeTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RID
getNextVertex()
protected void
handleCorruption(Exception e, RID edge, RID nextVertex)
protected boolean
hasNext(boolean edge)
Iterator<T>
iterator()
void
remove()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next
-
-
-
-
Field Detail
-
database
protected final DatabaseInternal database
-
currentContainer
protected EdgeSegment currentContainer
-
currentPosition
protected final AtomicInteger currentPosition
-
nextEdge
protected RID nextEdge
-
nextVertex
protected RID nextVertex
-
next
protected RID next
-
-
Constructor Detail
-
IteratorFilterBase
protected IteratorFilterBase(DatabaseInternal database, EdgeSegment current, String[] edgeTypes)
-
-
Method Detail
-
hasNext
protected boolean hasNext(boolean edge)
-
getNextVertex
public RID getNextVertex()
-
-