Package org.neo4j.graphalgo.core.loading
Class RelationshipPropertiesBatchBuffer
- java.lang.Object
-
- org.neo4j.graphalgo.core.loading.RelationshipPropertiesBatchBuffer
-
- All Implemented Interfaces:
org.neo4j.graphalgo.core.loading.RelationshipImporter.PropertyReader
public class RelationshipPropertiesBatchBuffer extends java.lang.Object implements org.neo4j.graphalgo.core.loading.RelationshipImporter.PropertyReader
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int relationshipId, int propertyKeyId, double property)
long[][]
readProperty(long[] batch, int batchLength, int[] propertyKeyIds, double[] defaultValues, 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[] batch, int batchLength, int[] propertyKeyIds, double[] defaultValues, Aggregation[] aggregations, boolean atLeastOnePropertyToLoad)
Description copied from interface:org.neo4j.graphalgo.core.loading.RelationshipImporter.PropertyReader
Load the relationship properties for the given batch of relationships. Relationships are represented in the format produced byRelationshipsBatchBuffer
.- Specified by:
readProperty
in interfaceorg.neo4j.graphalgo.core.loading.RelationshipImporter.PropertyReader
- Parameters:
batch
- relationship databatchLength
- number of valid entries in the batch datapropertyKeyIds
- property key ids to loaddefaultValues
- default weight for each property keyaggregations
- the aggregation for each propertyatLeastOnePropertyToLoad
- true iff there is at least one value inpropertyKeyIds
that is notStatementConstants.NO_SUCH_PROPERTY_KEY
(-1).- Returns:
- list of property values per per relationship property id
-
-