Class RelationshipPropertiesBatchBuffer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RelationshipPropertiesBatchBuffer

        public RelationshipPropertiesBatchBuffer​(int batchSize,
                                                 int propertyCount)
    • 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: RelationshipImporter.PropertyReader
        Load the relationship properties for the given batch of relationships. Relationships are represented as two arrays from the RelationshipsBatchBuffer.
        Specified by:
        readProperty in interface RelationshipImporter.PropertyReader
        Parameters:
        relationshipReferences - relationship references (IDs)
        propertyReferences - property references (IDs or References)
        numberOfReferences - number of valid entries in the first two arrays
        propertyKeyIds - property key ids to load
        defaultValues - default weight for each property key
        aggregations - the aggregation for each property
        atLeastOnePropertyToLoad - true iff there is at least one value in propertyKeyIds that is not StatementConstants.NO_SUCH_PROPERTY_KEY (-1).
        Returns:
        list of property values per relationship property id