protected void queryDruidDim(List<Dimension> dimension){
  SuccessCallback success=buildDruidDimensionsSuccessCallback(dimension.get(0));
  for (  DataSource dataSource : dataSources) {
    DruidSearchQuery druidSearchQuery=new DruidSearchQuery(dataSource,AllGranularity.INSTANCE,null,INTERVALS,dimension,SEARCH_QUERY_SPEC,null,ROW_LIMIT);
    RequestContext requestContext=new RequestContext(null,false);
    druidWebService.postDruidQuery(requestContext,success,errorCallback,failureCallback,druidSearchQuery);
  }
}

protected void queryDruidDim ( List < Dimension > dimension ) { SuccessCallback success = buildDruidDimensionsSuccessCallback ( dimension . get ( 0 ) ) ; for ( DataSource dataSource : dataSources ) { DruidSearchQuery druidSearchQuery = new DruidSearchQuery ( dataSource , AllGranularity . INSTANCE , null , INTERVALS , dimension , SEARCH_QUERY_SPEC , null , ROW_LIMIT ) ; RequestContext requestContext = new RequestContext ( null , false ) ; druidWebService . postDruidQuery ( requestContext , success , errorCallback , failureCallback , druidSearchQuery ) ; } }
sets the success callback and makes a post query to druid for each data source .
