final StringBuilder buf = new StringBuilder();
for (final Query query : queries) {
final Scanner scanner = Internal.getScanner(query);
ArrayList<ArrayList<KeyValue>> rows;
while ((rows = scanner.nextRows().joinUninterruptibly()) != null) {
for (final ArrayList<KeyValue> row : rows) {
buf.setLength(0);
final byte[] key = row.get(0).key();
final long base_time = Internal.baseTime(tsdb, key);
final String metric = Internal.metricName(tsdb, key);