public class CountStatements extends Object implements AggregateStatements
| Constructor and Description |
|---|
CountStatements() |
| Modifier and Type | Method and Description |
|---|---|
CypherQuery |
countEdges(String type,
Iterable<Filter> filters)
construct queries to count all relationships with the specified type that match the specified filters
|
CypherQuery |
countEdges(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 filters
|
CypherQuery |
countNodes(Iterable<String> labels)
construct queries to count all nodes with the specified label
|
CypherQuery |
countNodes(String label,
Iterable<Filter> filters)
construct queries to count all nodes with the specified label that match the specified filters
|
public CypherQuery countNodes(Iterable<String> labels)
AggregateStatementscountNodes in interface AggregateStatementslabels - the labels attached to the objectCypherQuerypublic CypherQuery countNodes(String label, Iterable<Filter> filters)
AggregateStatementscountNodes in interface AggregateStatementslabel - the label value to filter onfilters - additional parameters to filter onCypherQuerypublic CypherQuery countEdges(String type, Iterable<Filter> filters)
AggregateStatementscountEdges in interface AggregateStatementstype - the relationship type to filter onfilters - additional parameters to filter onCypherQuerypublic CypherQuery countEdges(String startLabel, String type, String endLabel)
AggregateStatementscountEdges in interface AggregateStatementsstartLabel - the start node label to filter ontype - the type of relationship to filter onendLabel - the end node label to filter onCypherQueryCopyright © 2015–2020 Neo Technology, Inc.. All rights reserved.