Methods
__construct
__construct( $ip, $port, $endpoint = '/druid/v2/', $protocol = 'http', $httpMethod = 'POST')
Create a Guzzle Request object using the given JSON parameters
createRequest(string $query) : \Guzzle\Http\Message\RequestInterface
Arguments
Response
\Guzzle\Http\Message\RequestInterface
Execute a Druid query using the provided query generator, parameters, and response payload handler.
executeQuery(\DruidFamiliar\Interfaces\IDruidQueryGenerator $queryGenerator, \DruidFamiliar\Interfaces\IDruidQueryParameters $params, \DruidFamiliar\Interfaces\IDruidQueryResponseHandler $responseHandler) : mixed
See DruidFamiliar\ResponseHandler\DoNothingResponseHandler.
Arguments
Response
mixed
getEndpoint
getEndpoint() : string
Get the HTTP Method.
getHttpMethod() : string
getPort
getPort() : \DruidFamiliar\QueryExecutor\Number
Response
\DruidFamiliar\QueryExecutor\Number
Get the protocol.
getProtocol() : string
setEndpoint
setEndpoint(string $endpoint)
Set the HTTP Method.
setHttpMethod( $method)
Supported methods are: GET, POST
Arguments
setPort
setPort(\DruidFamiliar\QueryExecutor\Number $port)
Arguments
$port
\DruidFamiliar\QueryExecutor\Number
Set the protocol.
setProtocol(string $protocol)
Supported protocols are: http, https
Arguments
Properties
IP to Druid node
ip : String
Port to Druid node
port : \DruidFamiliar\QueryExecutor\Number
Type(s)
\DruidFamiliar\QueryExecutor\Number
The endpoint to hit on the Druid node
endpoint : string
The protocol the Druid node is listening on. (http or https)
protocol : integer
HTTP Method to use
httpMethod : string