Package org.neo4j.cypher.export
Interface SubGraph
- All Known Implementing Classes:
CypherResultSubGraph,DatabaseSubGraph,NodesAndRelsSubGraph
public interface SubGraph
-
Method Summary
Modifier and TypeMethodDescriptionlongcountsForNode(org.neo4j.graphdb.Label label) default longcountsForRelationship(org.neo4j.graphdb.Label start, org.neo4j.graphdb.RelationshipType type) Returns the count for the following pattern (start)-[type]->()longcountsForRelationship(org.neo4j.graphdb.Label start, org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Label end) Returns the count for the following pattern (start)-[type]->(end) If start is null will count the following pattern ()-[type]->(end) If end is null will count the following pattern (start)-[type]->() If both start and end are null will count the following pattern ()-[type]->()default longcountsForRelationship(org.neo4j.graphdb.RelationshipType type) Returns the count for the following pattern ()-[type]->()default longcountsForRelationship(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Label end) Returns the count for the following pattern ()-[type]->(end)Iterator<org.neo4j.graphdb.Node>findNodes(org.neo4j.graphdb.Label label) Iterable<org.neo4j.graphdb.Label>Iterable<org.neo4j.graphdb.RelationshipType>Iterable<org.neo4j.graphdb.schema.ConstraintDefinition>Iterable<org.neo4j.graphdb.schema.ConstraintDefinition>getConstraints(org.neo4j.graphdb.Label label) Iterable<org.neo4j.graphdb.schema.ConstraintDefinition>getConstraints(org.neo4j.graphdb.RelationshipType type) Iterable<org.neo4j.graphdb.schema.IndexDefinition>Iterable<org.neo4j.graphdb.schema.IndexDefinition>getIndexes(org.neo4j.graphdb.Label label) Iterable<org.neo4j.graphdb.schema.IndexDefinition>getIndexes(org.neo4j.graphdb.RelationshipType label) Iterable<org.neo4j.graphdb.Node>getNodes()Iterable<org.neo4j.graphdb.Relationship>labelsInUse(org.neo4j.internal.kernel.api.TokenRead ops, Collection<String> labelNames) relTypesInUse(org.neo4j.internal.kernel.api.TokenRead ops, Collection<String> relTypeNames)
-
Method Details
-
getNodes
Iterable<org.neo4j.graphdb.Node> getNodes() -
getRelationships
Iterable<org.neo4j.graphdb.Relationship> getRelationships() -
getIndexes
Iterable<org.neo4j.graphdb.schema.IndexDefinition> getIndexes() -
getConstraints
Iterable<org.neo4j.graphdb.schema.ConstraintDefinition> getConstraints() -
getConstraints
Iterable<org.neo4j.graphdb.schema.ConstraintDefinition> getConstraints(org.neo4j.graphdb.Label label) -
getConstraints
Iterable<org.neo4j.graphdb.schema.ConstraintDefinition> getConstraints(org.neo4j.graphdb.RelationshipType type) -
getIndexes
-
getIndexes
Iterable<org.neo4j.graphdb.schema.IndexDefinition> getIndexes(org.neo4j.graphdb.RelationshipType label) -
getAllRelationshipTypesInUse
Iterable<org.neo4j.graphdb.RelationshipType> getAllRelationshipTypesInUse() -
getAllLabelsInUse
Iterable<org.neo4j.graphdb.Label> getAllLabelsInUse() -
findNodes
-
relTypesInUse
default Map<String,Integer> relTypesInUse(org.neo4j.internal.kernel.api.TokenRead ops, Collection<String> relTypeNames) -
labelsInUse
default Map<String,Integer> labelsInUse(org.neo4j.internal.kernel.api.TokenRead ops, Collection<String> labelNames) -
countsForRelationship
long countsForRelationship(org.neo4j.graphdb.Label start, org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Label end) Returns the count for the following pattern (start)-[type]->(end) If start is null will count the following pattern ()-[type]->(end) If end is null will count the following pattern (start)-[type]->() If both start and end are null will count the following pattern ()-[type]->()- Parameters:
start- The start nodetype- The relationship typeend- The end node- Returns:
- the count
-
countsForRelationship
default long countsForRelationship(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Label end) Returns the count for the following pattern ()-[type]->(end)- Parameters:
type- The relationship typeend- The end node- Returns:
- the count
-
countsForRelationship
default long countsForRelationship(org.neo4j.graphdb.Label start, org.neo4j.graphdb.RelationshipType type) Returns the count for the following pattern (start)-[type]->()- Parameters:
start- The start nodetype- The relationship type- Returns:
- the count
-
countsForRelationship
default long countsForRelationship(org.neo4j.graphdb.RelationshipType type) Returns the count for the following pattern ()-[type]->()- Parameters:
type- The relationship type- Returns:
- the count
-
countsForNode
long countsForNode(org.neo4j.graphdb.Label label)
-