Package org.neo4j.gds.core.loading
Class CSRGraphStore
- java.lang.Object
-
- org.neo4j.gds.core.loading.CSRGraphStore
-
- All Implemented Interfaces:
GraphStore
public class CSRGraphStore extends java.lang.Object implements GraphStore
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.neo4j.gds.api.GraphStore
GraphStore.PropertyState
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<RelationshipType,Relationships.Topology>
relationships
-
Constructor Summary
Constructors Modifier Constructor Description protected
CSRGraphStore(org.neo4j.kernel.database.NamedDatabaseId databaseId, NodeMapping nodes, java.util.Map<NodeLabel,NodePropertyStore> nodeProperties, java.util.Map<RelationshipType,Relationships.Topology> relationships, java.util.Map<RelationshipType,RelationshipPropertyStore> relationshipProperties, int concurrency, AllocationTracker tracker)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNodeProperty(NodeLabel nodeLabel, java.lang.String propertyKey, NodeProperties propertyValues)
void
addRelationshipType(RelationshipType relationshipType, java.util.Optional<java.lang.String> relationshipPropertyKey, java.util.Optional<org.neo4j.values.storable.NumberType> relationshipPropertyType, Relationships relationships)
void
canRelease(boolean canRelease)
org.neo4j.kernel.database.NamedDatabaseId
databaseId()
DeletionResult
deleteRelationships(RelationshipType relationshipType)
CompositeRelationshipIterator
getCompositeRelationshipIterator(RelationshipType relationshipType, java.util.List<java.lang.String> propertyKeys)
CSRGraph
getGraph(java.util.Collection<NodeLabel> nodeLabels, java.util.Collection<RelationshipType> relationshipTypes, java.util.Optional<java.lang.String> maybeRelationshipProperty)
CSRGraph
getUnion()
boolean
hasNodeProperty(java.util.Collection<NodeLabel> labels, java.lang.String propertyKey)
boolean
hasNodeProperty(NodeLabel nodeLabel, java.lang.String propertyKey)
boolean
hasRelationshipProperty(RelationshipType relType, java.lang.String propertyKey)
boolean
hasRelationshipType(RelationshipType relationshipType)
java.time.ZonedDateTime
modificationTime()
long
nodeCount()
java.util.Set<NodeLabel>
nodeLabels()
java.util.Map<NodeLabel,java.util.Set<java.lang.String>>
nodePropertyKeys()
java.util.Set<java.lang.String>
nodePropertyKeys(NodeLabel label)
GraphStore.PropertyState
nodePropertyState(java.lang.String propertyKey)
ValueType
nodePropertyType(NodeLabel label, java.lang.String propertyKey)
NodeProperties
nodePropertyValues(java.lang.String propertyKey)
NodeProperties
nodePropertyValues(NodeLabel label, java.lang.String propertyKey)
NodeMapping
nodes()
static CSRGraphStore
of(org.neo4j.kernel.database.NamedDatabaseId databaseId, NodeMapping nodes, java.util.Map<NodeLabel,NodePropertyStore> nodePropertyStores, java.util.Map<RelationshipType,Relationships.Topology> relationships, java.util.Map<RelationshipType,RelationshipPropertyStore> relationshipPropertyStores, int concurrency, AllocationTracker tracker)
long
relationshipCount()
long
relationshipCount(RelationshipType relationshipType)
java.util.Set<java.lang.String>
relationshipPropertyKeys()
java.util.Set<java.lang.String>
relationshipPropertyKeys(RelationshipType relationshipType)
ValueType
relationshipPropertyType(java.lang.String propertyKey)
java.util.Set<RelationshipType>
relationshipTypes()
void
release()
void
removeNodeProperty(NodeLabel nodeLabel, java.lang.String propertyKey)
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
-
-
-
-
Field Detail
-
relationships
protected final java.util.Map<RelationshipType,Relationships.Topology> relationships
-
-
Constructor Detail
-
CSRGraphStore
protected CSRGraphStore(org.neo4j.kernel.database.NamedDatabaseId databaseId, NodeMapping nodes, java.util.Map<NodeLabel,NodePropertyStore> nodeProperties, java.util.Map<RelationshipType,Relationships.Topology> relationships, java.util.Map<RelationshipType,RelationshipPropertyStore> relationshipProperties, int concurrency, AllocationTracker tracker)
-
-
Method Detail
-
of
public static CSRGraphStore of(org.neo4j.kernel.database.NamedDatabaseId databaseId, NodeMapping nodes, java.util.Map<NodeLabel,NodePropertyStore> nodePropertyStores, java.util.Map<RelationshipType,Relationships.Topology> relationships, java.util.Map<RelationshipType,RelationshipPropertyStore> relationshipPropertyStores, int concurrency, AllocationTracker tracker)
-
databaseId
public org.neo4j.kernel.database.NamedDatabaseId databaseId()
- Specified by:
databaseId
in interfaceGraphStore
-
schema
public GraphSchema schema()
- Specified by:
schema
in interfaceGraphStore
-
modificationTime
public java.time.ZonedDateTime modificationTime()
- Specified by:
modificationTime
in interfaceGraphStore
-
nodes
public NodeMapping nodes()
- Specified by:
nodes
in interfaceGraphStore
-
nodeLabels
public java.util.Set<NodeLabel> nodeLabels()
- Specified by:
nodeLabels
in interfaceGraphStore
-
nodePropertyKeys
public java.util.Set<java.lang.String> nodePropertyKeys(NodeLabel label)
- Specified by:
nodePropertyKeys
in interfaceGraphStore
-
nodePropertyKeys
public java.util.Map<NodeLabel,java.util.Set<java.lang.String>> nodePropertyKeys()
- Specified by:
nodePropertyKeys
in interfaceGraphStore
-
hasNodeProperty
public boolean hasNodeProperty(NodeLabel nodeLabel, java.lang.String propertyKey)
- Specified by:
hasNodeProperty
in interfaceGraphStore
-
hasNodeProperty
public boolean hasNodeProperty(java.util.Collection<NodeLabel> labels, java.lang.String propertyKey)
- Specified by:
hasNodeProperty
in interfaceGraphStore
-
addNodeProperty
public void addNodeProperty(NodeLabel nodeLabel, java.lang.String propertyKey, NodeProperties propertyValues)
- Specified by:
addNodeProperty
in interfaceGraphStore
-
removeNodeProperty
public void removeNodeProperty(NodeLabel nodeLabel, java.lang.String propertyKey)
- Specified by:
removeNodeProperty
in interfaceGraphStore
-
nodePropertyType
public ValueType nodePropertyType(NodeLabel label, java.lang.String propertyKey)
- Specified by:
nodePropertyType
in interfaceGraphStore
-
nodePropertyState
public GraphStore.PropertyState nodePropertyState(java.lang.String propertyKey)
- Specified by:
nodePropertyState
in interfaceGraphStore
-
nodePropertyValues
public NodeProperties nodePropertyValues(java.lang.String propertyKey)
- Specified by:
nodePropertyValues
in interfaceGraphStore
-
nodePropertyValues
public NodeProperties nodePropertyValues(NodeLabel label, java.lang.String propertyKey)
- Specified by:
nodePropertyValues
in interfaceGraphStore
-
relationshipTypes
public java.util.Set<RelationshipType> relationshipTypes()
- Specified by:
relationshipTypes
in interfaceGraphStore
-
hasRelationshipType
public boolean hasRelationshipType(RelationshipType relationshipType)
- Specified by:
hasRelationshipType
in interfaceGraphStore
-
relationshipCount
public long relationshipCount()
- Specified by:
relationshipCount
in interfaceGraphStore
-
relationshipCount
public long relationshipCount(RelationshipType relationshipType)
- Specified by:
relationshipCount
in interfaceGraphStore
-
hasRelationshipProperty
public boolean hasRelationshipProperty(RelationshipType relType, java.lang.String propertyKey)
- Specified by:
hasRelationshipProperty
in interfaceGraphStore
-
relationshipPropertyType
public ValueType relationshipPropertyType(java.lang.String propertyKey)
- Specified by:
relationshipPropertyType
in interfaceGraphStore
-
relationshipPropertyKeys
public java.util.Set<java.lang.String> relationshipPropertyKeys()
- Specified by:
relationshipPropertyKeys
in interfaceGraphStore
-
relationshipPropertyKeys
public java.util.Set<java.lang.String> relationshipPropertyKeys(RelationshipType relationshipType)
- Specified by:
relationshipPropertyKeys
in interfaceGraphStore
-
addRelationshipType
public void addRelationshipType(RelationshipType relationshipType, java.util.Optional<java.lang.String> relationshipPropertyKey, java.util.Optional<org.neo4j.values.storable.NumberType> relationshipPropertyType, Relationships relationships)
- Specified by:
addRelationshipType
in interfaceGraphStore
-
deleteRelationships
public DeletionResult deleteRelationships(RelationshipType relationshipType)
- Specified by:
deleteRelationships
in interfaceGraphStore
-
getGraph
public CSRGraph getGraph(java.util.Collection<NodeLabel> nodeLabels, java.util.Collection<RelationshipType> relationshipTypes, java.util.Optional<java.lang.String> maybeRelationshipProperty)
- Specified by:
getGraph
in interfaceGraphStore
-
getUnion
public CSRGraph getUnion()
- Specified by:
getUnion
in interfaceGraphStore
-
canRelease
public void canRelease(boolean canRelease)
- Specified by:
canRelease
in interfaceGraphStore
-
getCompositeRelationshipIterator
public CompositeRelationshipIterator getCompositeRelationshipIterator(RelationshipType relationshipType, java.util.List<java.lang.String> propertyKeys)
- Specified by:
getCompositeRelationshipIterator
in interfaceGraphStore
-
release
public void release()
- Specified by:
release
in interfaceGraphStore
-
nodeCount
public long nodeCount()
- Specified by:
nodeCount
in interfaceGraphStore
-
-