src/DruidFamiliar/QueryGenerator/GroupByQueryGenerator.php
public function generateQuery(IDruidQueryParameters $params)
    {
        if(!$params instanceof GroupByQueryParameters)
        {
            throw new Exception('Expected $params to be instanceof GroupByQueryParameters');
        }

        $params->validate();
        $query = $params->getJSONString();
        return $query;
    }
public function generateQuery(IDruidQueryParameters $params)
    {
        if(!$params instanceof GroupByQueryParameters)
        {
            throw new Exception('Expected $params to be instanceof GroupByQueryParameters');
        }

        $params->validate();
        $query = $params->getJSONString();
        return $query;
    }
Generate a Druid query's JSON POST body

@param IDruidQueryParameters $params

@return string|void
@throws Exception