Package org.neo4j.graphalgo.core.loading
Class CSRGraphStore
- java.lang.Object
-
- org.neo4j.graphalgo.core.loading.CSRGraphStore
-
- All Implemented Interfaces:
GraphStore
public final class CSRGraphStore extends java.lang.Object implements GraphStore
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CSRGraphStore.NodePropertyStore
static interface
CSRGraphStore.RelationshipProperty
static interface
CSRGraphStore.RelationshipPropertyStore
-
Nested classes/interfaces inherited from interface org.neo4j.graphalgo.api.GraphStore
GraphStore.PropertyState
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNodeProperty(NodeLabel nodeLabel, java.lang.String propertyKey, org.neo4j.values.storable.NumberType propertyType, NodeProperties propertyValues)
void
addRelationshipType(RelationshipType relationshipType, java.util.Optional<java.lang.String> relationshipPropertyKey, java.util.Optional<org.neo4j.values.storable.NumberType> relationshipPropertyType, HugeGraph.Relationships relationships)
void
canRelease(boolean canRelease)
DeletionResult
deleteRelationships(RelationshipType relationshipType)
Graph
getGraph(java.util.Collection<NodeLabel> nodeLabels, java.util.Collection<RelationshipType> relationshipTypes, java.util.Optional<java.lang.String> maybeRelationshipProperty)
Graph
getUnion()
boolean
hasNodeProperty(java.util.Collection<NodeLabel> labels, java.lang.String propertyKey)
boolean
hasRelationshipProperty(java.util.Collection<RelationshipType> relTypes, java.lang.String propertyKey)
boolean
hasRelationshipType(RelationshipType relationshipType)
java.time.ZonedDateTime
modificationTime()
long
nodeCount()
java.util.Set<NodeLabel>
nodeLabels()
long
nodePropertyCount()
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)
org.neo4j.values.storable.NumberType
nodePropertyType(NodeLabel label, java.lang.String propertyKey)
NodeProperties
nodePropertyValues(java.lang.String propertyKey)
NodeProperties
nodePropertyValues(NodeLabel label, java.lang.String propertyKey)
NodeMapping
nodes()
static GraphStore
of(HugeGraph graph, java.lang.String relationshipType, java.util.Optional<java.lang.String> relationshipProperty, int concurrency, AllocationTracker tracker)
static GraphStore
of(IdMap nodes, java.util.Map<NodeLabel,java.util.Map<java.lang.String,NodeProperties>> nodeProperties, java.util.Map<RelationshipType,HugeGraph.TopologyCSR> relationships, java.util.Map<RelationshipType,java.util.Map<java.lang.String,HugeGraph.PropertyCSR>> relationshipProperties, int concurrency, AllocationTracker tracker)
long
relationshipCount()
long
relationshipCount(RelationshipType relationshipType)
long
relationshipPropertyCount()
java.util.Set<java.lang.String>
relationshipPropertyKeys()
java.util.Set<java.lang.String>
relationshipPropertyKeys(RelationshipType relationshipType)
org.neo4j.values.storable.NumberType
relationshipPropertyType(java.lang.String propertyKey)
java.util.Set<RelationshipType>
relationshipTypes()
void
release()
void
removeNodeProperty(NodeLabel nodeLabel, java.lang.String propertyKey)
GraphStoreSchema
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.graphalgo.api.GraphStore
getGraph, getGraph, getGraph, getGraph, getGraph, nodePropertyKeys, relationshipPropertyKeys
-
-
-
-
Method Detail
-
of
public static GraphStore of(IdMap nodes, java.util.Map<NodeLabel,java.util.Map<java.lang.String,NodeProperties>> nodeProperties, java.util.Map<RelationshipType,HugeGraph.TopologyCSR> relationships, java.util.Map<RelationshipType,java.util.Map<java.lang.String,HugeGraph.PropertyCSR>> relationshipProperties, int concurrency, AllocationTracker tracker)
-
of
public static GraphStore of(HugeGraph graph, java.lang.String relationshipType, java.util.Optional<java.lang.String> relationshipProperty, int concurrency, AllocationTracker tracker)
-
schema
public GraphStoreSchema 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
-
nodePropertyCount
public long nodePropertyCount()
- Specified by:
nodePropertyCount
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, org.neo4j.values.storable.NumberType propertyType, NodeProperties propertyValues)
- Specified by:
addNodeProperty
in interfaceGraphStore
-
removeNodeProperty
public void removeNodeProperty(NodeLabel nodeLabel, java.lang.String propertyKey)
- Specified by:
removeNodeProperty
in interfaceGraphStore
-
nodePropertyType
public org.neo4j.values.storable.NumberType 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(java.util.Collection<RelationshipType> relTypes, java.lang.String propertyKey)
- Specified by:
hasRelationshipProperty
in interfaceGraphStore
-
relationshipPropertyType
public org.neo4j.values.storable.NumberType relationshipPropertyType(java.lang.String propertyKey)
- Specified by:
relationshipPropertyType
in interfaceGraphStore
-
relationshipPropertyCount
public long relationshipPropertyCount()
- Specified by:
relationshipPropertyCount
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, HugeGraph.Relationships relationships)
- Specified by:
addRelationshipType
in interfaceGraphStore
-
deleteRelationships
public DeletionResult deleteRelationships(RelationshipType relationshipType)
- Specified by:
deleteRelationships
in interfaceGraphStore
-
getGraph
public Graph 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 Graph getUnion()
- Specified by:
getUnion
in interfaceGraphStore
-
canRelease
public void canRelease(boolean canRelease)
- Specified by:
canRelease
in interfaceGraphStore
-
release
public void release()
- Specified by:
release
in interfaceGraphStore
-
nodeCount
public long nodeCount()
- Specified by:
nodeCount
in interfaceGraphStore
-
-