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
    • Constructor Detail

      • CSRGraphStore

        protected CSRGraphStore​(org.neo4j.kernel.database.NamedDatabaseId databaseId,
                                Capabilities capabilities,
                                org.neo4j.gds.api.schema.GraphSchema schema,
                                IdMap nodes,
                                NodePropertyStore nodeProperties,
                                java.util.Map<org.neo4j.gds.RelationshipType,​Relationships.Topology> relationships,
                                java.util.Map<org.neo4j.gds.RelationshipType,​RelationshipPropertyStore> relationshipProperties,
                                int concurrency)
    • 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
      • graphPropertyKeys

        public java.util.Set<java.lang.String> graphPropertyKeys()
        Specified by:
        graphPropertyKeys in interface GraphStore
      • hasGraphProperty

        public boolean hasGraphProperty​(java.lang.String propertyKey)
        Specified by:
        hasGraphProperty in interface GraphStore
      • graphPropertyType

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

        public void removeGraphProperty​(java.lang.String propertyKey)
        Specified by:
        removeGraphProperty 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.Set<java.lang.String> nodePropertyKeys()
        Specified by:
        nodePropertyKeys in interface GraphStore
      • hasNodeProperty

        public boolean hasNodeProperty​(java.lang.String propertyKey)
        Specified by:
        hasNodeProperty in interface GraphStore
      • hasNodeProperty

        public boolean hasNodeProperty​(org.neo4j.gds.NodeLabel label,
                                       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​(java.util.Set<org.neo4j.gds.NodeLabel> labels,
                                    java.lang.String propertyKey,
                                    NodePropertyValues propertyValues)
        Specified by:
        addNodeProperty in interface GraphStore
      • removeNodeProperty

        public void removeNodeProperty​(java.lang.String propertyKey)
        Specified by:
        removeNodeProperty 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)
        Description copied from interface: GraphStore
        Returns a graph containing only nodes with the given node labels and no relationships.
        Specified by:
        getGraph in interface GraphStore
        Parameters:
        nodeLabels - node label filter
        Returns:
        a node-only graph
      • 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