Package org.neo4j.gds.core.loading
Class PropertyReader.Buffered
- java.lang.Object
-
- org.neo4j.gds.core.loading.PropertyReader.Buffered
-
- All Implemented Interfaces:
PropertyReader
- Enclosing interface:
- PropertyReader
public static class PropertyReader.Buffered extends java.lang.Object implements PropertyReader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.neo4j.gds.core.loading.PropertyReader
PropertyReader.Buffered
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int relationshipId, int propertyKeyId, double property)long[][]readProperty(long[] relationshipReferences, org.neo4j.gds.compat.PropertyReference[] propertyReferences, int numberOfReferences, int[] propertyKeyIds, double[] defaultValues, org.neo4j.gds.core.Aggregation[] aggregations, boolean atLeastOnePropertyToLoad)Load the relationship properties for the given batch of relationships.
-
-
-
Method Detail
-
add
public void add(int relationshipId, int propertyKeyId, double property)
-
readProperty
public long[][] readProperty(long[] relationshipReferences, org.neo4j.gds.compat.PropertyReference[] propertyReferences, int numberOfReferences, int[] propertyKeyIds, double[] defaultValues, org.neo4j.gds.core.Aggregation[] aggregations, boolean atLeastOnePropertyToLoad)Description copied from interface:PropertyReaderLoad the relationship properties for the given batch of relationships. Relationships are represented as two arrays from theRelationshipsBatchBuffer.- Specified by:
readPropertyin interfacePropertyReader- Parameters:
relationshipReferences- relationship references (IDs)propertyReferences- property references (IDs or References)numberOfReferences- number of valid entries in the first two arrayspropertyKeyIds- property key ids to loaddefaultValues- default weight for each property keyaggregations- the aggregation for each propertyatLeastOnePropertyToLoad- true iff there is at least one value inpropertyKeyIdsthat is notStatementConstants.NO_SUCH_PROPERTY_KEY(-1).- Returns:
- list of property values per relationship property id
-
-