queryArgs.put("status_buckets", statusBuckets);
queryArgs.put("output_mode", outputMode);
// Execute the oneshot query, which returns the stream (i.e. there is
// no search job created, just a one time search)
InputStream stream = service.oneshotSearch(query, queryArgs);
boolean rawData = true;
if (command.opts.containsKey("raw")) {
int tmp = (Integer)command.opts.get("raw");
if (tmp == 0 ) rawData = false;