Package org.neo4j.gds.api
Class GraphStoreAdapter
- java.lang.Object
-
- org.neo4j.gds.api.GraphStoreAdapter
-
- All Implemented Interfaces:
GraphStore
,GraphStoreWrapper
public abstract class GraphStoreAdapter extends java.lang.Object implements GraphStoreWrapper
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GraphStoreAdapter(GraphStore graphStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGraphProperty(java.lang.String propertyKey, GraphPropertyValues propertyValues)
void
addInverseIndex(org.neo4j.gds.RelationshipType relationshipType, Topology topology, java.util.Optional<RelationshipPropertyStore> properties)
void
addNodeLabel(org.neo4j.gds.NodeLabel nodeLabel)
Add a new Node label to the Graph Store.void
addNodeProperty(java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels, java.lang.String propertyKey, NodePropertyValues propertyValues)
void
addRelationshipType(SingleTypeRelationships relationships)
Capabilities
capabilities()
DatabaseId
databaseId()
DeletionResult
deleteRelationships(org.neo4j.gds.RelationshipType relationshipType)
CompositeRelationshipIterator
getCompositeRelationshipIterator(org.neo4j.gds.RelationshipType relationshipType, java.util.Collection<java.lang.String> propertyKeys)
Graph
getGraph(java.lang.String relationshipProperty)
Graph
getGraph(java.lang.String nodeLabel, java.lang.String relationshipType, java.util.Optional<java.lang.String> maybeRelationshipProperty)
Graph
getGraph(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels)
Returns a graph containing only nodes with the given node labels and no relationships.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)
Graph
getGraph(java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes, java.util.Optional<java.lang.String> maybeRelationshipProperty)
Graph
getGraph(org.neo4j.gds.NodeLabel nodeLabel)
Returns a graph containing only nodes with the given node label and no relationships.Graph
getGraph(org.neo4j.gds.NodeLabel nodeLabel, org.neo4j.gds.RelationshipType relationshipType, java.util.Optional<java.lang.String> maybeRelationshipProperty)
Graph
getGraph(org.neo4j.gds.RelationshipType... relationshipType)
Graph
getGraph(org.neo4j.gds.RelationshipType relationshipType, java.util.Optional<java.lang.String> relationshipProperty)
Graph
getUnion()
GraphProperty
graphProperty(java.lang.String propertyKey)
java.util.Set<java.lang.String>
graphPropertyKeys()
org.neo4j.gds.api.nodeproperties.ValueType
graphPropertyType(java.lang.String propertyKey)
GraphPropertyValues
graphPropertyValues(java.lang.String propertyKey)
boolean
hasGraphProperty(java.lang.String propertyKey)
boolean
hasNodeProperty(java.lang.String propertyKey)
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)
GraphStore
innerGraphStore()
java.util.Set<org.neo4j.gds.RelationshipType>
inverseIndexedRelationshipTypes()
java.time.ZonedDateTime
modificationTime()
long
nodeCount()
java.util.Set<org.neo4j.gds.NodeLabel>
nodeLabels()
NodeProperty
nodeProperty(java.lang.String propertyKey)
java.util.Set<java.lang.String>
nodePropertyKeys()
java.util.Collection<java.lang.String>
nodePropertyKeys(java.util.Collection<org.neo4j.gds.NodeLabel> labels)
java.util.Set<java.lang.String>
nodePropertyKeys(org.neo4j.gds.NodeLabel label)
IdMap
nodes()
long
relationshipCount()
long
relationshipCount(org.neo4j.gds.RelationshipType relationshipType)
java.util.Set<java.lang.String>
relationshipPropertyKeys()
java.util.Collection<java.lang.String>
relationshipPropertyKeys(java.util.Collection<org.neo4j.gds.RelationshipType> relTypes)
java.util.Set<java.lang.String>
relationshipPropertyKeys(org.neo4j.gds.RelationshipType relationshipType)
org.neo4j.gds.api.nodeproperties.ValueType
relationshipPropertyType(java.lang.String propertyKey)
RelationshipProperty
relationshipPropertyValues(org.neo4j.gds.RelationshipType relationshipType, java.lang.String propertyKey)
java.util.Set<org.neo4j.gds.RelationshipType>
relationshipTypes()
void
removeGraphProperty(java.lang.String propertyKey)
void
removeNodeProperty(java.lang.String propertyKey)
org.neo4j.gds.api.schema.GraphSchema
schema()
-
-
-
Constructor Detail
-
GraphStoreAdapter
protected GraphStoreAdapter(GraphStore graphStore)
-
-
Method Detail
-
innerGraphStore
public GraphStore innerGraphStore()
- Specified by:
innerGraphStore
in interfaceGraphStoreWrapper
-
databaseId
public DatabaseId databaseId()
- Specified by:
databaseId
in interfaceGraphStore
-
capabilities
public Capabilities capabilities()
- Specified by:
capabilities
in interfaceGraphStore
-
schema
public org.neo4j.gds.api.schema.GraphSchema schema()
- Specified by:
schema
in interfaceGraphStore
-
modificationTime
public java.time.ZonedDateTime modificationTime()
- Specified by:
modificationTime
in interfaceGraphStore
-
graphPropertyKeys
public java.util.Set<java.lang.String> graphPropertyKeys()
- Specified by:
graphPropertyKeys
in interfaceGraphStore
-
hasGraphProperty
public boolean hasGraphProperty(java.lang.String propertyKey)
- Specified by:
hasGraphProperty
in interfaceGraphStore
-
graphProperty
public GraphProperty graphProperty(java.lang.String propertyKey)
- Specified by:
graphProperty
in interfaceGraphStore
-
graphPropertyType
public org.neo4j.gds.api.nodeproperties.ValueType graphPropertyType(java.lang.String propertyKey)
- Specified by:
graphPropertyType
in interfaceGraphStore
-
graphPropertyValues
public GraphPropertyValues graphPropertyValues(java.lang.String propertyKey)
- Specified by:
graphPropertyValues
in interfaceGraphStore
-
addGraphProperty
public void addGraphProperty(java.lang.String propertyKey, GraphPropertyValues propertyValues)
- Specified by:
addGraphProperty
in interfaceGraphStore
-
removeGraphProperty
public void removeGraphProperty(java.lang.String propertyKey)
- Specified by:
removeGraphProperty
in interfaceGraphStore
-
nodeCount
public long nodeCount()
- Specified by:
nodeCount
in interfaceGraphStore
-
nodes
public IdMap nodes()
- Specified by:
nodes
in interfaceGraphStore
-
nodeLabels
public java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels()
- Specified by:
nodeLabels
in interfaceGraphStore
-
addNodeLabel
public void addNodeLabel(org.neo4j.gds.NodeLabel nodeLabel)
Description copied from interface:GraphStore
Add a new Node label to the Graph Store.- Specified by:
addNodeLabel
in interfaceGraphStore
- Parameters:
nodeLabel
- the Node label to add
-
nodePropertyKeys
public java.util.Set<java.lang.String> nodePropertyKeys(org.neo4j.gds.NodeLabel label)
- Specified by:
nodePropertyKeys
in interfaceGraphStore
-
nodePropertyKeys
public java.util.Set<java.lang.String> nodePropertyKeys()
- Specified by:
nodePropertyKeys
in interfaceGraphStore
-
hasNodeProperty
public boolean hasNodeProperty(java.lang.String propertyKey)
- Specified by:
hasNodeProperty
in interfaceGraphStore
-
hasNodeProperty
public boolean hasNodeProperty(org.neo4j.gds.NodeLabel label, java.lang.String propertyKey)
- Specified by:
hasNodeProperty
in interfaceGraphStore
-
hasNodeProperty
public boolean hasNodeProperty(java.util.Collection<org.neo4j.gds.NodeLabel> labels, java.lang.String propertyKey)
- Specified by:
hasNodeProperty
in interfaceGraphStore
-
nodePropertyKeys
public java.util.Collection<java.lang.String> nodePropertyKeys(java.util.Collection<org.neo4j.gds.NodeLabel> labels)
- Specified by:
nodePropertyKeys
in interfaceGraphStore
-
nodeProperty
public NodeProperty nodeProperty(java.lang.String propertyKey)
- Specified by:
nodeProperty
in interfaceGraphStore
-
addNodeProperty
public void addNodeProperty(java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels, java.lang.String propertyKey, NodePropertyValues propertyValues)
- Specified by:
addNodeProperty
in interfaceGraphStore
-
removeNodeProperty
public void removeNodeProperty(java.lang.String propertyKey)
- Specified by:
removeNodeProperty
in interfaceGraphStore
-
relationshipCount
public long relationshipCount()
- Specified by:
relationshipCount
in interfaceGraphStore
-
relationshipCount
public long relationshipCount(org.neo4j.gds.RelationshipType relationshipType)
- Specified by:
relationshipCount
in interfaceGraphStore
-
relationshipTypes
public java.util.Set<org.neo4j.gds.RelationshipType> relationshipTypes()
- Specified by:
relationshipTypes
in interfaceGraphStore
-
hasRelationshipType
public boolean hasRelationshipType(org.neo4j.gds.RelationshipType relationshipType)
- Specified by:
hasRelationshipType
in interfaceGraphStore
-
inverseIndexedRelationshipTypes
public java.util.Set<org.neo4j.gds.RelationshipType> inverseIndexedRelationshipTypes()
- Specified by:
inverseIndexedRelationshipTypes
in interfaceGraphStore
-
hasRelationshipProperty
public boolean hasRelationshipProperty(org.neo4j.gds.RelationshipType relType, java.lang.String propertyKey)
- Specified by:
hasRelationshipProperty
in interfaceGraphStore
-
relationshipPropertyKeys
public java.util.Collection<java.lang.String> relationshipPropertyKeys(java.util.Collection<org.neo4j.gds.RelationshipType> relTypes)
- Specified by:
relationshipPropertyKeys
in interfaceGraphStore
-
relationshipPropertyType
public org.neo4j.gds.api.nodeproperties.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(org.neo4j.gds.RelationshipType relationshipType)
- Specified by:
relationshipPropertyKeys
in interfaceGraphStore
-
relationshipPropertyValues
public RelationshipProperty relationshipPropertyValues(org.neo4j.gds.RelationshipType relationshipType, java.lang.String propertyKey)
- Specified by:
relationshipPropertyValues
in interfaceGraphStore
-
addRelationshipType
public void addRelationshipType(SingleTypeRelationships relationships)
- Specified by:
addRelationshipType
in interfaceGraphStore
-
addInverseIndex
public void addInverseIndex(org.neo4j.gds.RelationshipType relationshipType, Topology topology, java.util.Optional<RelationshipPropertyStore> properties)
- Specified by:
addInverseIndex
in interfaceGraphStore
-
deleteRelationships
public DeletionResult deleteRelationships(org.neo4j.gds.RelationshipType relationshipType)
- Specified by:
deleteRelationships
in interfaceGraphStore
-
getGraph
public Graph getGraph(org.neo4j.gds.NodeLabel nodeLabel)
Description copied from interface:GraphStore
Returns a graph containing only nodes with the given node label and no relationships.- Specified by:
getGraph
in interfaceGraphStore
- Parameters:
nodeLabel
- node label filter- Returns:
- a node-only graph
-
getGraph
public Graph 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 interfaceGraphStore
- Parameters:
nodeLabels
- node label filter- Returns:
- a node-only graph
-
getGraph
public Graph getGraph(org.neo4j.gds.RelationshipType... relationshipType)
- Specified by:
getGraph
in interfaceGraphStore
-
getGraph
public Graph getGraph(java.lang.String relationshipProperty)
- Specified by:
getGraph
in interfaceGraphStore
-
getGraph
public Graph getGraph(org.neo4j.gds.RelationshipType relationshipType, java.util.Optional<java.lang.String> relationshipProperty)
- Specified by:
getGraph
in interfaceGraphStore
-
getGraph
public Graph getGraph(java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes, java.util.Optional<java.lang.String> maybeRelationshipProperty)
- Specified by:
getGraph
in interfaceGraphStore
-
getGraph
public Graph getGraph(java.lang.String nodeLabel, java.lang.String relationshipType, java.util.Optional<java.lang.String> maybeRelationshipProperty)
- Specified by:
getGraph
in interfaceGraphStore
-
getGraph
public Graph getGraph(org.neo4j.gds.NodeLabel nodeLabel, org.neo4j.gds.RelationshipType relationshipType, java.util.Optional<java.lang.String> maybeRelationshipProperty)
- Specified by:
getGraph
in interfaceGraphStore
-
getGraph
public 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 interfaceGraphStore
-
getUnion
public Graph getUnion()
- Specified by:
getUnion
in interfaceGraphStore
-
getCompositeRelationshipIterator
public CompositeRelationshipIterator getCompositeRelationshipIterator(org.neo4j.gds.RelationshipType relationshipType, java.util.Collection<java.lang.String> propertyKeys)
- Specified by:
getCompositeRelationshipIterator
in interfaceGraphStore
-
-