Class DatabaseSubGraph

java.lang.Object
org.neo4j.cypher.export.DatabaseSubGraph
All Implemented Interfaces:
SubGraph

public class DatabaseSubGraph extends Object implements SubGraph
  • Constructor Details

    • DatabaseSubGraph

      public DatabaseSubGraph(org.neo4j.graphdb.Transaction transaction)
  • Method Details

    • getNodes

      public Iterable<org.neo4j.graphdb.Node> getNodes()
      Specified by:
      getNodes in interface SubGraph
    • getRelationships

      public Iterable<org.neo4j.graphdb.Relationship> getRelationships()
      Specified by:
      getRelationships in interface SubGraph
    • getIndexes

      public Iterable<org.neo4j.graphdb.schema.IndexDefinition> getIndexes()
      Specified by:
      getIndexes in interface SubGraph
    • getConstraints

      public Iterable<org.neo4j.graphdb.schema.ConstraintDefinition> getConstraints()
      Specified by:
      getConstraints in interface SubGraph
    • getConstraints

      public Iterable<org.neo4j.graphdb.schema.ConstraintDefinition> getConstraints(org.neo4j.graphdb.Label label)
      Specified by:
      getConstraints in interface SubGraph
    • getConstraints

      public Iterable<org.neo4j.graphdb.schema.ConstraintDefinition> getConstraints(org.neo4j.graphdb.RelationshipType type)
      Specified by:
      getConstraints in interface SubGraph
    • getIndexes

      public Iterable<org.neo4j.graphdb.schema.IndexDefinition> getIndexes(org.neo4j.graphdb.Label label)
      Specified by:
      getIndexes in interface SubGraph
    • getIndexes

      public Iterable<org.neo4j.graphdb.schema.IndexDefinition> getIndexes(org.neo4j.graphdb.RelationshipType type)
      Specified by:
      getIndexes in interface SubGraph
    • getAllRelationshipTypesInUse

      public Iterable<org.neo4j.graphdb.RelationshipType> getAllRelationshipTypesInUse()
      Specified by:
      getAllRelationshipTypesInUse in interface SubGraph
    • getAllLabelsInUse

      public Iterable<org.neo4j.graphdb.Label> getAllLabelsInUse()
      Specified by:
      getAllLabelsInUse in interface SubGraph
    • countsForRelationship

      public long countsForRelationship(org.neo4j.graphdb.Label start, org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Label end)
      Description copied from interface: SubGraph
      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]->()
      Specified by:
      countsForRelationship in interface SubGraph
      Parameters:
      start - The start node
      type - The relationship type
      end - The end node
      Returns:
      the count
    • countsForNode

      public long countsForNode(org.neo4j.graphdb.Label label)
      Specified by:
      countsForNode in interface SubGraph
    • findNodes

      public Iterator<org.neo4j.graphdb.Node> findNodes(org.neo4j.graphdb.Label label)
      Specified by:
      findNodes in interface SubGraph