Interface SubGraph

All Known Implementing Classes:
CypherResultSubGraph, DatabaseSubGraph, NodesAndRelsSubGraph

public interface SubGraph
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    countsForNode(org.neo4j.graphdb.Label label)
     
    default long
    countsForRelationship(org.neo4j.graphdb.Label start, org.neo4j.graphdb.RelationshipType type)
    Returns the count for the following pattern (start)-[type]->()
    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]->()
    default long
    countsForRelationship(org.neo4j.graphdb.RelationshipType type)
    Returns the count for the following pattern ()-[type]->()
    default long
    countsForRelationship(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>
     
    Iterable<org.neo4j.graphdb.Relationship>
     
    default Map<String,Integer>
    labelsInUse(org.neo4j.internal.kernel.api.TokenRead ops, Collection<String> labelNames)
     
    default Map<String,Integer>
    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

      Iterable<org.neo4j.graphdb.schema.IndexDefinition> getIndexes(org.neo4j.graphdb.Label label)
    • 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

      Iterator<org.neo4j.graphdb.Node> findNodes(org.neo4j.graphdb.Label label)
    • 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 node
      type - The relationship type
      end - 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 type
      end - 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 node
      type - 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)