Package org.neo4j.gds.api
Interface CompositeRelationshipIterator
-
- All Known Implementing Classes:
CSRCompositeRelationshipIterator
public interface CompositeRelationshipIterator
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCompositeRelationshipIterator.RelationshipConsumer
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompositeRelationshipIteratorconcurrentCopy()Creates a thread-safe copy of the iterator.intdegree(long nodeId)Returns the degree of the given node id.voidforEachRelationship(long nodeId, CompositeRelationshipIterator.RelationshipConsumer consumer)Applies the given consumer on all relationships of the given node id.java.lang.String[]propertyKeys()Returns the property keys that are managed by this iterator.
-
-
-
Method Detail
-
degree
int degree(long nodeId)
Returns the degree of the given node id.
-
forEachRelationship
void forEachRelationship(long nodeId, CompositeRelationshipIterator.RelationshipConsumer consumer)Applies the given consumer on all relationships of the given node id.
-
propertyKeys
java.lang.String[] propertyKeys()
Returns the property keys that are managed by this iterator. The order is equivalent to the order of the value array inCompositeRelationshipIterator.RelationshipConsumer.consume(long, long, double[]).
-
concurrentCopy
CompositeRelationshipIterator concurrentCopy()
Creates a thread-safe copy of the iterator.
-
-