Package org.neo4j.cypher.export
Class DatabaseSubGraph
java.lang.Object
org.neo4j.cypher.export.DatabaseSubGraph
- All Implemented Interfaces:
SubGraph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountsForNode(org.neo4j.graphdb.Label label) 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]->()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 type) Iterable<org.neo4j.graphdb.Node>getNodes()Iterable<org.neo4j.graphdb.Relationship>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.neo4j.cypher.export.SubGraph
countsForRelationship, countsForRelationship, countsForRelationship, labelsInUse, relTypesInUse
-
Constructor Details
-
DatabaseSubGraph
public DatabaseSubGraph(org.neo4j.graphdb.Transaction transaction)
-
-
Method Details
-
getNodes
-
getRelationships
- Specified by:
getRelationshipsin interfaceSubGraph
-
getIndexes
- Specified by:
getIndexesin interfaceSubGraph
-
getConstraints
- Specified by:
getConstraintsin interfaceSubGraph
-
getConstraints
public Iterable<org.neo4j.graphdb.schema.ConstraintDefinition> getConstraints(org.neo4j.graphdb.Label label) - Specified by:
getConstraintsin interfaceSubGraph
-
getConstraints
public Iterable<org.neo4j.graphdb.schema.ConstraintDefinition> getConstraints(org.neo4j.graphdb.RelationshipType type) - Specified by:
getConstraintsin interfaceSubGraph
-
getIndexes
- Specified by:
getIndexesin interfaceSubGraph
-
getIndexes
public Iterable<org.neo4j.graphdb.schema.IndexDefinition> getIndexes(org.neo4j.graphdb.RelationshipType type) - Specified by:
getIndexesin interfaceSubGraph
-
getAllRelationshipTypesInUse
- Specified by:
getAllRelationshipTypesInUsein interfaceSubGraph
-
getAllLabelsInUse
- Specified by:
getAllLabelsInUsein interfaceSubGraph
-
countsForRelationship
public long countsForRelationship(org.neo4j.graphdb.Label start, org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Label end) Description copied from interface:SubGraphReturns 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]->()- Specified by:
countsForRelationshipin interfaceSubGraph- Parameters:
start- The start nodetype- The relationship typeend- The end node- Returns:
- the count
-
countsForNode
public long countsForNode(org.neo4j.graphdb.Label label) - Specified by:
countsForNodein interfaceSubGraph
-
findNodes
-