TimeBoundaryResponseHandler

Implements \DruidFamiliar\Interfaces\IDruidQueryResponseHandler

Class TimeBoundaryResponseHandler attempts to convert a Druid response into a TimeBoundaryResponse.

package

DruidFamiliar\ResponseHandler

Methods

Hook function to handle response from server. Called with a PHP array of the JSON response from Druid.

handleResponse(\Guzzle\Http\Message\Response $response) : \DruidFamiliar\Response\TimeBoundaryResponse|mixed

This hook must return the response, whether changed or not, so that the rest of the system can continue with it.

throws

Arguments

$response

\Guzzle\Http\Message\Response

Response

\DruidFamiliar\Response\TimeBoundaryResponse|mixed