Class CSRGraphStore

  • All Implemented Interfaces:
    GraphStore

    public class CSRGraphStore
    extends java.lang.Object
    implements GraphStore
    • Field Detail

      • relationships

        protected final java.util.Map<org.neo4j.gds.RelationshipType,​Relationships.Topology> relationships
    • Method Detail

      • databaseId

        public org.neo4j.kernel.database.NamedDatabaseId databaseId()
        Specified by:
        databaseId in interface GraphStore
      • schema

        public org.neo4j.gds.api.schema.GraphSchema schema()
        Specified by:
        schema in interface GraphStore
      • nodeLabels

        public java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels()
        Specified by:
        nodeLabels in interface GraphStore
      • nodePropertyKeys

        public java.util.Set<java.lang.String> nodePropertyKeys​(org.neo4j.gds.NodeLabel label)
        Specified by:
        nodePropertyKeys in interface GraphStore
      • nodePropertyKeys

        public java.util.Map<org.neo4j.gds.NodeLabel,​java.util.Set<java.lang.String>> nodePropertyKeys()
        Specified by:
        nodePropertyKeys in interface GraphStore
      • hasNodeProperty

        public boolean hasNodeProperty​(org.neo4j.gds.NodeLabel nodeLabel,
                                       java.lang.String propertyKey)
        Specified by:
        hasNodeProperty in interface GraphStore
      • hasNodeProperty

        public boolean hasNodeProperty​(java.util.Collection<org.neo4j.gds.NodeLabel> labels,
                                       java.lang.String propertyKey)
        Specified by:
        hasNodeProperty in interface GraphStore
      • addNodeProperty

        public void addNodeProperty​(org.neo4j.gds.NodeLabel nodeLabel,
                                    java.lang.String propertyKey,
                                    NodeProperties propertyValues)
        Specified by:
        addNodeProperty in interface GraphStore
      • removeNodeProperty

        public void removeNodeProperty​(org.neo4j.gds.NodeLabel nodeLabel,
                                       java.lang.String propertyKey)
        Specified by:
        removeNodeProperty in interface GraphStore
      • nodePropertyType

        public org.neo4j.gds.api.nodeproperties.ValueType nodePropertyType​(org.neo4j.gds.NodeLabel label,
                                                                           java.lang.String propertyKey)
        Specified by:
        nodePropertyType in interface GraphStore
      • nodePropertyState

        public org.neo4j.gds.api.PropertyState nodePropertyState​(java.lang.String propertyKey)
        Specified by:
        nodePropertyState in interface GraphStore
      • relationshipTypes

        public java.util.Set<org.neo4j.gds.RelationshipType> relationshipTypes()
        Specified by:
        relationshipTypes in interface GraphStore
      • hasRelationshipType

        public boolean hasRelationshipType​(org.neo4j.gds.RelationshipType relationshipType)
        Specified by:
        hasRelationshipType in interface GraphStore
      • relationshipCount

        public long relationshipCount​(org.neo4j.gds.RelationshipType relationshipType)
        Specified by:
        relationshipCount in interface GraphStore
      • hasRelationshipProperty

        public boolean hasRelationshipProperty​(org.neo4j.gds.RelationshipType relType,
                                               java.lang.String propertyKey)
        Specified by:
        hasRelationshipProperty in interface GraphStore
      • relationshipPropertyType

        public org.neo4j.gds.api.nodeproperties.ValueType relationshipPropertyType​(java.lang.String propertyKey)
        Specified by:
        relationshipPropertyType in interface GraphStore
      • relationshipPropertyKeys

        public java.util.Set<java.lang.String> relationshipPropertyKeys​(org.neo4j.gds.RelationshipType relationshipType)
        Specified by:
        relationshipPropertyKeys in interface GraphStore
      • addRelationshipType

        public void addRelationshipType​(org.neo4j.gds.RelationshipType relationshipType,
                                        java.util.Optional<java.lang.String> relationshipPropertyKey,
                                        java.util.Optional<org.neo4j.values.storable.NumberType> relationshipPropertyType,
                                        Relationships relationships)
        Specified by:
        addRelationshipType in interface GraphStore
      • getGraph

        public CSRGraph getGraph​(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels,
                                 java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes,
                                 java.util.Optional<java.lang.String> maybeRelationshipProperty)
        Specified by:
        getGraph in interface GraphStore
      • canRelease

        public void canRelease​(boolean canRelease)
        Specified by:
        canRelease in interface GraphStore