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,
HttpClient httpClient,
String scheme,
String host,
ServiceEmitter emitter) |
Modifier and Type | Method and Description |
---|---|
int |
getNumOpenConnections() |
static Map<String,Object> |
makeResponseContextForQuery(Query query,
long startTimeMillis) |
static void |
removeMagicResponseContextFields(Map<String,Object> responseContext)
Removes the magical fields added by
makeResponseContextForQuery(Query, long) . |
Sequence<T> |
run(QueryPlus<T> queryPlus,
Map<String,Object> context)
Runs the given query and returns results in a time-ordered sequence.
|
String |
toString() |
public 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, HttpClient httpClient, String scheme, String host, ServiceEmitter emitter)
public static void removeMagicResponseContextFields(Map<String,Object> responseContext)
makeResponseContextForQuery(Query, long)
.public static Map<String,Object> makeResponseContextForQuery(Query query, long startTimeMillis)
public int getNumOpenConnections()
public Sequence<T> run(QueryPlus<T> queryPlus, Map<String,Object> context)
QueryRunner
run
in interface QueryRunner<T>
Copyright © 2011–2018. All rights reserved.