Package org.neo4j.graphalgo.core.loading
Interface RelationshipImporter.PropertyReader
-
- All Known Implementing Classes:
RelationshipPropertiesBatchBuffer
- Enclosing class:
- RelationshipImporter
public static interface RelationshipImporter.PropertyReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
-
readProperty
long[][] readProperty(long[] batch, int batchLength, int[] propertyKeyIds, double[] defaultValues, Aggregation[] aggregations, boolean atLeastOnePropertyToLoad)
Load the relationship properties for the given batch of relationships. Relationships are represented in the format produced byRelationshipsBatchBuffer
.- 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 relationship property id
-
-