Loops through each row of the scanner results and parses out data points and optional meta data @return null if no rows were found, otherwise the TreeMap with spans
(final ArrayList<ArrayList<KeyValue>> rows)
| 290 | * @return null if no rows were found, otherwise the TreeMap with spans |
| 291 | */ |
| 292 | @Override |
| 293 | public Object call(final ArrayList<ArrayList<KeyValue>> rows) |
| 294 | throws Exception { |
| 295 | try { |
| 296 | if (rows == null) { |
| 297 | results.callback(tsuids); |
| 298 | return null; |
| 299 | } |
| 300 | |
| 301 | for (final ArrayList<KeyValue> row : rows) { |
| 302 | final byte[] tsuid = row.get(0).key(); |
| 303 | tsuids.put(tsuid, row.get(0).timestamp()); |
| 304 | } |
| 305 | return scan(); |
| 306 | } catch (Exception e) { |
| 307 | results.callback(e); |
| 308 | return null; |
| 309 | } |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | new ScannerCB().scan(); |