Class CountStatements
java.lang.Object
org.neo4j.ogm.session.request.strategy.impl.CountStatements
- All Implemented Interfaces:
AggregateStatements
Encapsulates Cypher statements used to execute aggregation queries.
- Author:
- Adam George, Vince Bickers, Jasper Blues, Michael J. Simons
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncountEdges
(String type, Iterable<Filter> filters) construct queries to count all relationships with the specified type that match the specified filterscountEdges
(String startLabel, String type, String endLabel) construct queries to count all single-length paths with the specified start label, relationship type and end label that match the specified filterscountNodes
(Iterable<String> labels) construct queries to count all nodes with the specified labelcountNodes
(String label, Iterable<Filter> filters) construct queries to count all nodes with the specified label that match the specified filters
-
Constructor Details
-
CountStatements
public CountStatements()
-
-
Method Details
-
countNodes
Description copied from interface:AggregateStatements
construct queries to count all nodes with the specified label- Specified by:
countNodes
in interfaceAggregateStatements
- Parameters:
labels
- the labels attached to the object- Returns:
- a
CypherQuery
-
countNodes
Description copied from interface:AggregateStatements
construct queries to count all nodes with the specified label that match the specified filters- Specified by:
countNodes
in interfaceAggregateStatements
- Parameters:
label
- the label value to filter onfilters
- additional parameters to filter on- Returns:
- a
CypherQuery
-
countEdges
Description copied from interface:AggregateStatements
construct queries to count all relationships with the specified type that match the specified filters- Specified by:
countEdges
in interfaceAggregateStatements
- Parameters:
type
- the relationship type to filter onfilters
- additional parameters to filter on- Returns:
- a
CypherQuery
-
countEdges
Description copied from interface:AggregateStatements
construct queries to count all single-length paths with the specified start label, relationship type and end label that match the specified filters- Specified by:
countEdges
in interfaceAggregateStatements
- Parameters:
startLabel
- the start node label to filter ontype
- the type of relationship to filter onendLabel
- the end node label to filter on- Returns:
- a
CypherQuery
-