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 protectedGraphStoreAdapter(GraphStore graphStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGraphProperty(java.lang.String propertyKey, GraphPropertyValues propertyValues)voidaddNodeProperty(java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels, java.lang.String propertyKey, NodePropertyValues propertyValues)voidaddRelationshipType(org.neo4j.gds.RelationshipType relationshipType, java.util.Optional<java.lang.String> relationshipPropertyKey, java.util.Optional<org.neo4j.values.storable.NumberType> relationshipPropertyType, Relationships relationships)voidcanRelease(boolean canRelease)Capabilitiescapabilities()DatabaseIddatabaseId()DeletionResultdeleteRelationships(org.neo4j.gds.RelationshipType relationshipType)CompositeRelationshipIteratorgetCompositeRelationshipIterator(org.neo4j.gds.RelationshipType relationshipType, java.util.List<java.lang.String> propertyKeys)GraphgetGraph(java.lang.String relationshipProperty)GraphgetGraph(java.lang.String nodeLabel, java.lang.String relationshipType, java.util.Optional<java.lang.String> maybeRelationshipProperty)GraphgetGraph(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels)Returns a graph containing only nodes with the given node labels and no relationships.GraphgetGraph(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels, java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes, java.util.Optional<java.lang.String> maybeRelationshipProperty)GraphgetGraph(java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes, java.util.Optional<java.lang.String> maybeRelationshipProperty)GraphgetGraph(org.neo4j.gds.NodeLabel nodeLabel)Returns a graph containing only nodes with the given node label and no relationships.GraphgetGraph(org.neo4j.gds.NodeLabel nodeLabel, org.neo4j.gds.RelationshipType relationshipType, java.util.Optional<java.lang.String> maybeRelationshipProperty)GraphgetGraph(org.neo4j.gds.RelationshipType... relationshipType)GraphgetGraph(org.neo4j.gds.RelationshipType relationshipType, java.util.Optional<java.lang.String> relationshipProperty)GraphgetUnion()GraphPropertygraphProperty(java.lang.String propertyKey)java.util.Set<java.lang.String>graphPropertyKeys()org.neo4j.gds.api.nodeproperties.ValueTypegraphPropertyType(java.lang.String propertyKey)GraphPropertyValuesgraphPropertyValues(java.lang.String propertyKey)booleanhasGraphProperty(java.lang.String propertyKey)booleanhasNodeProperty(java.lang.String propertyKey)booleanhasNodeProperty(java.util.Collection<org.neo4j.gds.NodeLabel> labels, java.lang.String propertyKey)booleanhasNodeProperty(org.neo4j.gds.NodeLabel label, java.lang.String propertyKey)booleanhasRelationshipProperty(org.neo4j.gds.RelationshipType relType, java.lang.String propertyKey)booleanhasRelationshipType(org.neo4j.gds.RelationshipType relationshipType)GraphStoreinnerGraphStore()java.time.ZonedDateTimemodificationTime()longnodeCount()java.util.Set<org.neo4j.gds.NodeLabel>nodeLabels()NodePropertynodeProperty(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)IdMapnodes()longrelationshipCount()longrelationshipCount(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.ValueTyperelationshipPropertyType(java.lang.String propertyKey)RelationshipPropertyrelationshipPropertyValues(org.neo4j.gds.RelationshipType relationshipType, java.lang.String propertyKey)java.util.Set<org.neo4j.gds.RelationshipType>relationshipTypes()voidrelease()voidremoveGraphProperty(java.lang.String propertyKey)voidremoveNodeProperty(java.lang.String propertyKey)org.neo4j.gds.api.schema.GraphSchemaschema()
-
-
-
Constructor Detail
-
GraphStoreAdapter
protected GraphStoreAdapter(GraphStore graphStore)
-
-
Method Detail
-
innerGraphStore
public GraphStore innerGraphStore()
- Specified by:
innerGraphStorein interfaceGraphStoreWrapper
-
databaseId
public DatabaseId databaseId()
- Specified by:
databaseIdin interfaceGraphStore
-
capabilities
public Capabilities capabilities()
- Specified by:
capabilitiesin interfaceGraphStore
-
schema
public org.neo4j.gds.api.schema.GraphSchema schema()
- Specified by:
schemain interfaceGraphStore
-
modificationTime
public java.time.ZonedDateTime modificationTime()
- Specified by:
modificationTimein interfaceGraphStore
-
graphPropertyKeys
public java.util.Set<java.lang.String> graphPropertyKeys()
- Specified by:
graphPropertyKeysin interfaceGraphStore
-
hasGraphProperty
public boolean hasGraphProperty(java.lang.String propertyKey)
- Specified by:
hasGraphPropertyin interfaceGraphStore
-
graphProperty
public GraphProperty graphProperty(java.lang.String propertyKey)
- Specified by:
graphPropertyin interfaceGraphStore
-
graphPropertyType
public org.neo4j.gds.api.nodeproperties.ValueType graphPropertyType(java.lang.String propertyKey)
- Specified by:
graphPropertyTypein interfaceGraphStore
-
graphPropertyValues
public GraphPropertyValues graphPropertyValues(java.lang.String propertyKey)
- Specified by:
graphPropertyValuesin interfaceGraphStore
-
addGraphProperty
public void addGraphProperty(java.lang.String propertyKey, GraphPropertyValues propertyValues)- Specified by:
addGraphPropertyin interfaceGraphStore
-
removeGraphProperty
public void removeGraphProperty(java.lang.String propertyKey)
- Specified by:
removeGraphPropertyin interfaceGraphStore
-
nodeCount
public long nodeCount()
- Specified by:
nodeCountin interfaceGraphStore
-
nodes
public IdMap nodes()
- Specified by:
nodesin interfaceGraphStore
-
nodeLabels
public java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels()
- Specified by:
nodeLabelsin interfaceGraphStore
-
nodePropertyKeys
public java.util.Set<java.lang.String> nodePropertyKeys(org.neo4j.gds.NodeLabel label)
- Specified by:
nodePropertyKeysin interfaceGraphStore
-
nodePropertyKeys
public java.util.Set<java.lang.String> nodePropertyKeys()
- Specified by:
nodePropertyKeysin interfaceGraphStore
-
hasNodeProperty
public boolean hasNodeProperty(java.lang.String propertyKey)
- Specified by:
hasNodePropertyin interfaceGraphStore
-
hasNodeProperty
public boolean hasNodeProperty(org.neo4j.gds.NodeLabel label, java.lang.String propertyKey)- Specified by:
hasNodePropertyin interfaceGraphStore
-
hasNodeProperty
public boolean hasNodeProperty(java.util.Collection<org.neo4j.gds.NodeLabel> labels, java.lang.String propertyKey)- Specified by:
hasNodePropertyin interfaceGraphStore
-
nodePropertyKeys
public java.util.Collection<java.lang.String> nodePropertyKeys(java.util.Collection<org.neo4j.gds.NodeLabel> labels)
- Specified by:
nodePropertyKeysin interfaceGraphStore
-
nodeProperty
public NodeProperty nodeProperty(java.lang.String propertyKey)
- Specified by:
nodePropertyin interfaceGraphStore
-
addNodeProperty
public void addNodeProperty(java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels, java.lang.String propertyKey, NodePropertyValues propertyValues)- Specified by:
addNodePropertyin interfaceGraphStore
-
removeNodeProperty
public void removeNodeProperty(java.lang.String propertyKey)
- Specified by:
removeNodePropertyin interfaceGraphStore
-
relationshipCount
public long relationshipCount()
- Specified by:
relationshipCountin interfaceGraphStore
-
relationshipCount
public long relationshipCount(org.neo4j.gds.RelationshipType relationshipType)
- Specified by:
relationshipCountin interfaceGraphStore
-
relationshipTypes
public java.util.Set<org.neo4j.gds.RelationshipType> relationshipTypes()
- Specified by:
relationshipTypesin interfaceGraphStore
-
hasRelationshipType
public boolean hasRelationshipType(org.neo4j.gds.RelationshipType relationshipType)
- Specified by:
hasRelationshipTypein interfaceGraphStore
-
hasRelationshipProperty
public boolean hasRelationshipProperty(org.neo4j.gds.RelationshipType relType, java.lang.String propertyKey)- Specified by:
hasRelationshipPropertyin interfaceGraphStore
-
relationshipPropertyKeys
public java.util.Collection<java.lang.String> relationshipPropertyKeys(java.util.Collection<org.neo4j.gds.RelationshipType> relTypes)
- Specified by:
relationshipPropertyKeysin interfaceGraphStore
-
relationshipPropertyType
public org.neo4j.gds.api.nodeproperties.ValueType relationshipPropertyType(java.lang.String propertyKey)
- Specified by:
relationshipPropertyTypein interfaceGraphStore
-
relationshipPropertyKeys
public java.util.Set<java.lang.String> relationshipPropertyKeys()
- Specified by:
relationshipPropertyKeysin interfaceGraphStore
-
relationshipPropertyKeys
public java.util.Set<java.lang.String> relationshipPropertyKeys(org.neo4j.gds.RelationshipType relationshipType)
- Specified by:
relationshipPropertyKeysin interfaceGraphStore
-
relationshipPropertyValues
public RelationshipProperty relationshipPropertyValues(org.neo4j.gds.RelationshipType relationshipType, java.lang.String propertyKey)
- Specified by:
relationshipPropertyValuesin interfaceGraphStore
-
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:
addRelationshipTypein interfaceGraphStore
-
deleteRelationships
public DeletionResult deleteRelationships(org.neo4j.gds.RelationshipType relationshipType)
- Specified by:
deleteRelationshipsin interfaceGraphStore
-
getGraph
public Graph getGraph(org.neo4j.gds.NodeLabel nodeLabel)
Description copied from interface:GraphStoreReturns a graph containing only nodes with the given node label and no relationships.- Specified by:
getGraphin 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:GraphStoreReturns a graph containing only nodes with the given node labels and no relationships.- Specified by:
getGraphin interfaceGraphStore- Parameters:
nodeLabels- node label filter- Returns:
- a node-only graph
-
getGraph
public Graph getGraph(org.neo4j.gds.RelationshipType... relationshipType)
- Specified by:
getGraphin interfaceGraphStore
-
getGraph
public Graph getGraph(java.lang.String relationshipProperty)
- Specified by:
getGraphin interfaceGraphStore
-
getGraph
public Graph getGraph(org.neo4j.gds.RelationshipType relationshipType, java.util.Optional<java.lang.String> relationshipProperty)
- Specified by:
getGraphin interfaceGraphStore
-
getGraph
public Graph getGraph(java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes, java.util.Optional<java.lang.String> maybeRelationshipProperty)
- Specified by:
getGraphin interfaceGraphStore
-
getGraph
public Graph getGraph(java.lang.String nodeLabel, java.lang.String relationshipType, java.util.Optional<java.lang.String> maybeRelationshipProperty)
- Specified by:
getGraphin interfaceGraphStore
-
getGraph
public Graph getGraph(org.neo4j.gds.NodeLabel nodeLabel, org.neo4j.gds.RelationshipType relationshipType, java.util.Optional<java.lang.String> maybeRelationshipProperty)
- Specified by:
getGraphin 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:
getGraphin interfaceGraphStore
-
getUnion
public Graph getUnion()
- Specified by:
getUnionin interfaceGraphStore
-
getCompositeRelationshipIterator
public CompositeRelationshipIterator getCompositeRelationshipIterator(org.neo4j.gds.RelationshipType relationshipType, java.util.List<java.lang.String> propertyKeys)
- Specified by:
getCompositeRelationshipIteratorin interfaceGraphStore
-
canRelease
public void canRelease(boolean canRelease)
- Specified by:
canReleasein interfaceGraphStore
-
release
public void release()
- Specified by:
releasein interfaceGraphStore
-
-