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 CURSOR
cursor(long node, CURSOR reuse)
protected abstract int
degree(long node)
void
intersectAll(long nodeA, IntersectionConsumer consumer)
-
-
-
Field Detail
-
empty
protected CURSOR extends AdjacencyCursor empty
-
-
Method Detail
-
intersectAll
public void intersectAll(long nodeA, IntersectionConsumer consumer)
- Specified by:
intersectAll
in interfaceRelationshipIntersect
-
degree
protected abstract int degree(long node)
-
-