Class DirectDruidClient<T>

  • All Implemented Interfaces:
    org.apache.druid.query.QueryRunner<T>

    public class DirectDruidClient<T>
    extends Object
    implements org.apache.druid.query.QueryRunner<T>
    • 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 by makeResponseContextForQuery().
      • 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:
        run in interface org.apache.druid.query.QueryRunner<T>