Package org.neo4j.gds.core.huge
Class CSRCompositeRelationshipIterator
- java.lang.Object
-
- org.neo4j.gds.core.huge.CSRCompositeRelationshipIterator
-
- All Implemented Interfaces:
CompositeRelationshipIterator
public class CSRCompositeRelationshipIterator extends java.lang.Object implements CompositeRelationshipIterator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.neo4j.gds.api.CompositeRelationshipIterator
CompositeRelationshipIterator.RelationshipConsumer
-
-
Field Summary
Fields Modifier and Type Field Description static AdjacencyProperties[]EMPTY_PROPERTIES
-
Constructor Summary
Constructors Constructor Description CSRCompositeRelationshipIterator(AdjacencyList adjacencyList, java.lang.String[] propertyKeys, AdjacencyProperties[] properties)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
EMPTY_PROPERTIES
public static final AdjacencyProperties[] EMPTY_PROPERTIES
-
-
Constructor Detail
-
CSRCompositeRelationshipIterator
public CSRCompositeRelationshipIterator(AdjacencyList adjacencyList, java.lang.String[] propertyKeys, AdjacencyProperties[] properties)
-
-
Method Detail
-
degree
public int degree(long nodeId)
Description copied from interface:CompositeRelationshipIteratorReturns the degree of the given node id.- Specified by:
degreein interfaceCompositeRelationshipIterator
-
forEachRelationship
public void forEachRelationship(long nodeId, CompositeRelationshipIterator.RelationshipConsumer consumer)Description copied from interface:CompositeRelationshipIteratorApplies the given consumer on all relationships of the given node id.- Specified by:
forEachRelationshipin interfaceCompositeRelationshipIterator
-
propertyKeys
public java.lang.String[] propertyKeys()
Description copied from interface:CompositeRelationshipIteratorReturns 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[]).- Specified by:
propertyKeysin interfaceCompositeRelationshipIterator
-
concurrentCopy
public CompositeRelationshipIterator concurrentCopy()
Description copied from interface:CompositeRelationshipIteratorCreates a thread-safe copy of the iterator.- Specified by:
concurrentCopyin interfaceCompositeRelationshipIterator
-
-