public class DirectDruidClient<T> extends Object implements QueryRunner<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
QUERY_FAIL_TIME |
static String |
QUERY_TOTAL_BYTES_GATHERED |
| Constructor and Description |
|---|
DirectDruidClient(QueryToolChestWarehouse warehouse,
QueryWatcher queryWatcher,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.metamx.http.client.HttpClient httpClient,
String host,
com.metamx.emitter.service.ServiceEmitter emitter) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumOpenConnections() |
static Map<String,Object> |
makeResponseContextForQuery(Query query,
long startTimeMillis) |
Sequence<T> |
run(QueryPlus<T> queryPlus,
Map<String,Object> context)
Runs the given query and returns results in a time-ordered sequence.
|
String |
toString() |
static <T,QueryType extends Query<T>> |
withDefaultTimeoutAndMaxScatterGatherBytes(QueryType query,
ServerConfig serverConfig) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrunpublic static final String QUERY_FAIL_TIME
public static final String QUERY_TOTAL_BYTES_GATHERED
public DirectDruidClient(QueryToolChestWarehouse warehouse, QueryWatcher queryWatcher, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.metamx.http.client.HttpClient httpClient, String host, com.metamx.emitter.service.ServiceEmitter emitter)
public static <T,QueryType extends Query<T>> QueryType withDefaultTimeoutAndMaxScatterGatherBytes(QueryType query, ServerConfig serverConfig)
public static Map<String,Object> makeResponseContextForQuery(Query query, long startTimeMillis)
public int getNumOpenConnections()
public Sequence<T> run(QueryPlus<T> queryPlus, Map<String,Object> context)
QueryRunnerrun in interface QueryRunner<T>Copyright © 2011–2017. All rights reserved.