Package org.neo4j.gds.api
Interface RelationshipConsumer
-
- All Known Implementing Classes:
HugeGraph.GetTargetConsumer
public interface RelationshipConsumer
TODO: Define interface contract, esp regarding source/target node ids returned and how that maps to relationship direction consumer interface for relationships without property.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
accept(long sourceNodeId, long targetNodeId)
Called for every edge that matches a given relation-constraintdefault RelationshipConsumer
andThen(RelationshipConsumer after)
-
-
-
Method Detail
-
accept
boolean accept(long sourceNodeId, long targetNodeId)
Called for every edge that matches a given relation-constraint- Parameters:
sourceNodeId
- mapped source node idtargetNodeId
- mapped target node id- Returns:
true
if the iteration shall continue, otherwisefalse
.
-
andThen
default RelationshipConsumer andThen(RelationshipConsumer after)
-
-