Package org.neo4j.cypher.export
Class CypherResultSubGraph
java.lang.Object
org.neo4j.cypher.export.CypherResultSubGraph
- All Implemented Interfaces:
SubGraph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.neo4j.graphdb.Node node) voidadd(org.neo4j.graphdb.Relationship rel, boolean addNodes) longcountsForNode(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) static SubGraphfrom(org.neo4j.graphdb.Transaction tx, org.neo4j.graphdb.Result result, boolean addBetween) static SubGraphfrom(org.neo4j.graphdb.Transaction tx, org.neo4j.graphdb.Result result, boolean addBetween, boolean addRelNodes) 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) Collection<org.neo4j.graphdb.Label>Iterable<org.neo4j.graphdb.Node>getNodes()Iterable<org.neo4j.graphdb.Relationship>Collection<org.neo4j.graphdb.RelationshipType>getTypes()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
-
CypherResultSubGraph
public CypherResultSubGraph()
-
-
Method Details
-
add
public void add(org.neo4j.graphdb.Node node) -
add
public void add(org.neo4j.graphdb.Relationship rel, boolean addNodes) -
from
public static SubGraph from(org.neo4j.graphdb.Transaction tx, org.neo4j.graphdb.Result result, boolean addBetween) -
from
public static SubGraph from(org.neo4j.graphdb.Transaction tx, org.neo4j.graphdb.Result result, boolean addBetween, boolean addRelNodes) -
getNodes
-
getRelationships
- Specified by:
getRelationshipsin interfaceSubGraph
-
getLabels
-
getTypes
-
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
-