src/DataStore/src/Middleware/Handler/QueryHandler.php
protected function getTotalItems(Query $rqlQuery)
    {
        $rqlQuery->setLimit(new LimitNode(ReadInterface::LIMIT_INFINITY));
        $aggregateCountFunction = new AggregateFunctionNode('count', $this->dataStore->getIdentifier());

        $rqlQuery->setSelect(new SelectNode([$aggregateCountFunction]));
        $aggregateCount = $this->dataStore->query($rqlQuery);

        return current($aggregateCount)["$aggregateCountFunction"];
    }
protected function getTotalItems(Query $rqlQuery)
    {
        $rqlQuery->setLimit(new LimitNode(ReadInterface::LIMIT_INFINITY));
        $aggregateCountFunction = new AggregateFunctionNode('count', $this->dataStore->getIdentifier());

        $rqlQuery->setSelect(new SelectNode([$aggregateCountFunction]));
        $aggregateCount = $this->dataStore->query($rqlQuery);

        return current($aggregateCount)["$aggregateCountFunction"];
    }
protected function getTotalItems ( Query $ rqlQuery ) { $ rqlQuery -> setLimit ( new LimitNode ( ReadInterface :: LIMIT_INFINITY ) ) ; $ aggregateCountFunction = new AggregateFunctionNode ( 'count' , $ this -> dataStore -> getIdentifier ( ) ) ; $ rqlQuery -> setSelect ( new SelectNode ( [ $ aggregateCountFunction ] ) ) ; $ aggregateCount = $ this -> dataStore -> query ( $ rqlQuery ) ; return current ( $ aggregateCount ) [ "$aggregateCountFunction" ] ; }
Get total count items in data store

@param Query $rqlQuery
@return mixed
Get total count items in data store