Package org.neo4j.gds.core.loading
Interface PropertyReader
-
- All Known Implementing Classes:
PropertyReader.Buffered
public interface PropertyReader
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PropertyReader.Buffered
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static PropertyReader.Buffered
buffered(int batchSize, int propertyCount)
static PropertyReader
preLoaded()
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.static PropertyReader
storeBacked(org.neo4j.kernel.api.KernelTransaction kernelTransaction)
-
-
-
Method Detail
-
readProperty
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. Relationships are represented as two arrays from theRelationshipsBatchBuffer
.- 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 inpropertyKeyIds
that is notStatementConstants.NO_SUCH_PROPERTY_KEY
(-1).- Returns:
- list of property values per relationship property id
-
preLoaded
static PropertyReader preLoaded()
-
storeBacked
static PropertyReader storeBacked(org.neo4j.kernel.api.KernelTransaction kernelTransaction)
-
buffered
static PropertyReader.Buffered buffered(int batchSize, int propertyCount)
-
-