Package org.apache.druid.client
Class DirectDruidClient<T>
- java.lang.Object
-
- org.apache.druid.client.DirectDruidClient<T>
-
- All Implemented Interfaces:
org.apache.druid.query.QueryRunner<T>
public class DirectDruidClient<T> extends Object implements org.apache.druid.query.QueryRunner<T>
-
-
Field Summary
Fields Modifier and Type Field Description static StringQUERY_FAIL_TIME
-
Constructor Summary
Constructors Constructor Description DirectDruidClient(org.apache.druid.query.QueryToolChestWarehouse warehouse, org.apache.druid.query.QueryWatcher queryWatcher, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.apache.druid.java.util.http.client.HttpClient httpClient, String scheme, String host, org.apache.druid.java.util.emitter.service.ServiceEmitter emitter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumOpenConnections()static org.apache.druid.query.context.ConcurrentResponseContextmakeResponseContextForQuery()static voidremoveMagicResponseContextFields(org.apache.druid.query.context.ResponseContext responseContext)Removes the magical fields added bymakeResponseContextForQuery().org.apache.druid.java.util.common.guava.Sequence<T>run(org.apache.druid.query.QueryPlus<T> queryPlus, org.apache.druid.query.context.ResponseContext context)StringtoString()
-
-
-
Field Detail
-
QUERY_FAIL_TIME
public static final String QUERY_FAIL_TIME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DirectDruidClient
public DirectDruidClient(org.apache.druid.query.QueryToolChestWarehouse warehouse, org.apache.druid.query.QueryWatcher queryWatcher, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.apache.druid.java.util.http.client.HttpClient httpClient, String scheme, String host, org.apache.druid.java.util.emitter.service.ServiceEmitter emitter)
-
-
Method Detail
-
removeMagicResponseContextFields
public static void removeMagicResponseContextFields(org.apache.druid.query.context.ResponseContext responseContext)
Removes the magical fields added bymakeResponseContextForQuery().
-
makeResponseContextForQuery
public static org.apache.druid.query.context.ConcurrentResponseContext makeResponseContextForQuery()
-
getNumOpenConnections
public int getNumOpenConnections()
-
run
public org.apache.druid.java.util.common.guava.Sequence<T> run(org.apache.druid.query.QueryPlus<T> queryPlus, org.apache.druid.query.context.ResponseContext context)
- Specified by:
runin interfaceorg.apache.druid.query.QueryRunner<T>
-
-