private fun applyTotalCount(builder: StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere, allNodesCollected: SymbolicName, additionalNames: List<SymbolicName>, totalCount: SymbolicName): StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere?
If necessary, adds a with statement to the builder which fetches totalCount
Return
the new builder
Parameters
builder
ongoing statement builder
allNodesCollected
name for the variable containing a collection of all nodes
additionalNames
additional names which should be added to the with statement
totalCount
name for the variable under which totalCount should be saved