public function executeQuery(IDruidQueryGenerator $queryGenerator, IDruidQueryParameters $params, IDruidQueryResponseHandler $responseHandler)
    {
        $params->validate();

        $generatedQuery = $queryGenerator->generateQuery($params);

        // Create a request
        $request = $this->createRequest( $generatedQuery );

        // Send the request and parse the JSON response into an array
        try
        {
            $response = $request->send();
        }
        catch (\Guzzle\Http\Exception\CurlException $curlException)
        {
            throw new $curlException;
        }

        $formattedResponse = $responseHandler->handleResponse($response);

        return $formattedResponse;
    }
public function executeQuery(IDruidQueryGenerator $queryGenerator, IDruidQueryParameters $params, IDruidQueryResponseHandler $responseHandler)
    {
        $params->validate();

        $generatedQuery = $queryGenerator->generateQuery($params);

        // Create a request
        $request = $this->createRequest( $generatedQuery );

        // Send the request and parse the JSON response into an array
        try
        {
            $response = $request->send();
        }
        catch (\Guzzle\Http\Exception\CurlException $curlException)
        {
            throw new $curlException;
        }

        $formattedResponse = $responseHandler->handleResponse($response);

        return $formattedResponse;
    }
public function executeQuery ( IDruidQueryGenerator $ queryGenerator , IDruidQueryParameters $ params , IDruidQueryResponseHandler $ responseHandler ) { $ params -> validate ( ) ; $ generatedQuery = $ queryGenerator -> generateQuery ( $ params ) ; // Create a request $ request = $ this -> createRequest ( $ generatedQuery ) ; // Send the request and parse the JSON response into an array try { $ response = $ request -> send ( ) ; } catch ( \ Guzzle \ Http \ Exception \ CurlException $ curlException ) { throw new $ curlException ; } $ formattedResponse = $ responseHandler -> handleResponse ( $ response ) ; return $ formattedResponse ; }
Execute a Druid query using the provided query generator, parameters, and response payload handler.

See DruidFamiliar\ResponseHandler\DoNothingResponseHandler.

@param IDruidQueryGenerator $queryGenerator
@param IDruidQueryParameters $params
@param IDruidQueryResponseHandler $responseHandler
@return mixed
Execute a Druid query using the provided query generator parameters and response payload handler .