Package org.neo4j.graphalgo.core.huge
Class GraphIntersect<CURSOR extends AdjacencyCursor>
- java.lang.Object
-
- org.neo4j.graphalgo.core.huge.GraphIntersect<CURSOR>
-
- All Implemented Interfaces:
RelationshipIntersect
- Direct Known Subclasses:
HugeGraphIntersect
public abstract class GraphIntersect<CURSOR extends AdjacencyCursor> extends java.lang.Object implements RelationshipIntersect
An instance of this is not thread-safe; Iteration/Intersection on multiple threads will throw misleadingNullPointerException
s. Instances are however safe to use concurrently with otherRelationshipIterator
s.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GraphIntersect(CURSOR cache, CURSOR cacheA, CURSOR cacheB, CURSOR empty, long maxDegree)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract long
advance(CURSOR cursor, long nodeId)
protected abstract void
copyFrom(CURSOR sourceCursor, CURSOR targetCursor)
protected abstract CURSOR
cursor(long node, CURSOR reuse)
protected abstract int
degree(long node)
void
intersectAll(long nodeIdA, IntersectionConsumer consumer)
protected abstract long
skipUntil(CURSOR cursor, long nodeId)
-
-
-
Field Detail
-
empty
protected CURSOR extends AdjacencyCursor empty
-
-
Method Detail
-
intersectAll
public void intersectAll(long nodeIdA, IntersectionConsumer consumer)
- Specified by:
intersectAll
in interfaceRelationshipIntersect
-
skipUntil
protected abstract long skipUntil(CURSOR cursor, long nodeId)
-
advance
protected abstract long advance(CURSOR cursor, long nodeId)
-
degree
protected abstract int degree(long node)
-
-