Class NullGraphStore

  • All Implemented Interfaces:
    org.neo4j.gds.api.GraphStore

    public class NullGraphStore
    extends java.lang.Object
    implements org.neo4j.gds.api.GraphStore
    The NullGraphStore is used to store a NullGraph. It helps non-product algos work under the standard API.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.neo4j.gds.api.GraphStore

        org.neo4j.gds.api.GraphStore.PropertyState
    • Constructor Summary

      Constructors 
      Constructor Description
      NullGraphStore​(org.neo4j.kernel.database.NamedDatabaseId databaseId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addNodeProperty​(org.neo4j.gds.NodeLabel nodeLabel, java.lang.String propertyKey, org.neo4j.gds.api.NodeProperties propertyValues)  
      void addRelationshipType​(org.neo4j.gds.RelationshipType relationshipType, java.util.Optional<java.lang.String> relationshipPropertyKey, java.util.Optional<org.neo4j.values.storable.NumberType> relationshipPropertyType, org.neo4j.gds.api.Relationships relationships)  
      void canRelease​(boolean canRelease)  
      org.neo4j.kernel.database.NamedDatabaseId databaseId()  
      org.neo4j.gds.core.loading.DeletionResult deleteRelationships​(org.neo4j.gds.RelationshipType relationshipType)  
      org.neo4j.gds.api.CompositeRelationshipIterator getCompositeRelationshipIterator​(org.neo4j.gds.RelationshipType relationshipType, java.util.List<java.lang.String> propertyKeys)  
      org.neo4j.gds.api.Graph getGraph​(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels, java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes, java.util.Optional<java.lang.String> maybeRelationshipProperty)  
      org.neo4j.gds.api.Graph getUnion()  
      boolean hasNodeProperty​(java.util.Collection<org.neo4j.gds.NodeLabel> labels, java.lang.String propertyKey)  
      boolean hasNodeProperty​(org.neo4j.gds.NodeLabel label, java.lang.String propertyKey)  
      boolean hasRelationshipProperty​(org.neo4j.gds.RelationshipType relType, java.lang.String propertyKey)  
      boolean hasRelationshipType​(org.neo4j.gds.RelationshipType relationshipType)  
      java.time.ZonedDateTime modificationTime()  
      long nodeCount()  
      java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels()  
      java.util.Map<org.neo4j.gds.NodeLabel,​java.util.Set<java.lang.String>> nodePropertyKeys()  
      java.util.Set<java.lang.String> nodePropertyKeys​(org.neo4j.gds.NodeLabel label)  
      org.neo4j.gds.api.GraphStore.PropertyState nodePropertyState​(java.lang.String propertyKey)  
      org.neo4j.gds.api.nodeproperties.ValueType nodePropertyType​(org.neo4j.gds.NodeLabel label, java.lang.String propertyKey)  
      org.neo4j.gds.api.NodeProperties nodePropertyValues​(java.lang.String propertyKey)  
      org.neo4j.gds.api.NodeProperties nodePropertyValues​(org.neo4j.gds.NodeLabel label, java.lang.String propertyKey)  
      org.neo4j.gds.api.NodeMapping nodes()  
      long relationshipCount()  
      long relationshipCount​(org.neo4j.gds.RelationshipType relationshipType)  
      java.util.Set<java.lang.String> relationshipPropertyKeys()  
      java.util.Set<java.lang.String> relationshipPropertyKeys​(org.neo4j.gds.RelationshipType relationshipType)  
      org.neo4j.gds.api.nodeproperties.ValueType relationshipPropertyType​(java.lang.String propertyKey)  
      org.neo4j.gds.api.RelationshipProperty relationshipPropertyValues​(org.neo4j.gds.RelationshipType relationshipType, java.lang.String propertyKey)  
      java.util.Set<org.neo4j.gds.RelationshipType> relationshipTypes()  
      void release()  
      void removeNodeProperty​(org.neo4j.gds.NodeLabel nodeLabel, java.lang.String propertyKey)  
      org.neo4j.gds.api.schema.GraphSchema schema()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.neo4j.gds.api.GraphStore

        getGraph, getGraph, getGraph, getGraph, getGraph, nodePropertyKeys, relationshipPropertyKeys
    • Constructor Detail

      • NullGraphStore

        public NullGraphStore​(org.neo4j.kernel.database.NamedDatabaseId databaseId)
    • Method Detail

      • databaseId

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

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

        public java.time.ZonedDateTime modificationTime()
        Specified by:
        modificationTime in interface org.neo4j.gds.api.GraphStore
      • nodeCount

        public long nodeCount()
        Specified by:
        nodeCount in interface org.neo4j.gds.api.GraphStore
      • nodes

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

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

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

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

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

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

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

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

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

        public org.neo4j.gds.api.NodeProperties nodePropertyValues​(org.neo4j.gds.NodeLabel label,
                                                                   java.lang.String propertyKey)
        Specified by:
        nodePropertyValues in interface org.neo4j.gds.api.GraphStore
      • addNodeProperty

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

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

        public long relationshipCount()
        Specified by:
        relationshipCount in interface org.neo4j.gds.api.GraphStore
      • relationshipCount

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

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

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

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

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

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

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

        public org.neo4j.gds.api.RelationshipProperty relationshipPropertyValues​(org.neo4j.gds.RelationshipType relationshipType,
                                                                                 java.lang.String propertyKey)
        Specified by:
        relationshipPropertyValues in interface org.neo4j.gds.api.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,
                                        org.neo4j.gds.api.Relationships relationships)
        Specified by:
        addRelationshipType in interface org.neo4j.gds.api.GraphStore
      • deleteRelationships

        public org.neo4j.gds.core.loading.DeletionResult deleteRelationships​(org.neo4j.gds.RelationshipType relationshipType)
        Specified by:
        deleteRelationships in interface org.neo4j.gds.api.GraphStore
      • getGraph

        public org.neo4j.gds.api.Graph 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 org.neo4j.gds.api.GraphStore
      • getUnion

        public org.neo4j.gds.api.Graph getUnion()
        Specified by:
        getUnion in interface org.neo4j.gds.api.GraphStore
      • getCompositeRelationshipIterator

        public org.neo4j.gds.api.CompositeRelationshipIterator getCompositeRelationshipIterator​(org.neo4j.gds.RelationshipType relationshipType,
                                                                                                java.util.List<java.lang.String> propertyKeys)
        Specified by:
        getCompositeRelationshipIterator in interface org.neo4j.gds.api.GraphStore
      • canRelease

        public void canRelease​(boolean canRelease)
        Specified by:
        canRelease in interface org.neo4j.gds.api.GraphStore
      • release

        public void release()
        Specified by:
        release in interface org.neo4j.gds.api.GraphStore