Package org.apache.druid.client
Class DirectDruidClient<T>
java.lang.Object
org.apache.druid.client.DirectDruidClient<T>
- All Implemented Interfaces:
QueryRunner<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDirectDruidClient(QueryRunnerFactoryConglomerate conglomerate, QueryWatcher queryWatcher, com.fasterxml.jackson.databind.ObjectMapper objectMapper, HttpClient httpClient, String scheme, String host, ServiceEmitter emitter, ScheduledExecutorService queryCancellationExecutor) -
Method Summary
Modifier and TypeMethodDescriptionintstatic ConcurrentResponseContextstatic voidremoveMagicResponseContextFields(ResponseContext responseContext) Removes the magical fields added bymakeResponseContextForQuery().run(QueryPlus<T> queryPlus, ResponseContext context) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.query.QueryRunner
run
-
Field Details
-
QUERY_FAIL_TIME
- See Also:
-
-
Constructor Details
-
DirectDruidClient
public DirectDruidClient(QueryRunnerFactoryConglomerate conglomerate, QueryWatcher queryWatcher, com.fasterxml.jackson.databind.ObjectMapper objectMapper, HttpClient httpClient, String scheme, String host, ServiceEmitter emitter, ScheduledExecutorService queryCancellationExecutor)
-
-
Method Details
-
removeMagicResponseContextFields
Removes the magical fields added bymakeResponseContextForQuery(). -
makeResponseContextForQuery
-
getNumOpenConnections
public int getNumOpenConnections() -
run
- Specified by:
runin interfaceQueryRunner<T>
-
toString
-