(
final ArrayList<ArrayList<KeyValue>> rows)
| 353 | } |
| 354 | |
| 355 | @Override |
| 356 | public Deferred<List<Annotation>> call ( |
| 357 | final ArrayList<ArrayList<KeyValue>> rows) throws Exception { |
| 358 | if (rows == null || rows.isEmpty()) { |
| 359 | return Deferred.fromResult((List<Annotation>)annotations); |
| 360 | } |
| 361 | |
| 362 | for (final ArrayList<KeyValue> row : rows) { |
| 363 | for (KeyValue column : row) { |
| 364 | if ((column.qualifier().length == 3 || column.qualifier().length == 5) |
| 365 | && column.qualifier()[0] == PREFIX()) { |
| 366 | Annotation note = JSON.parseToObject(column.value(), |
| 367 | Annotation.class); |
| 368 | if (note.start_time < start_time || note.end_time > end_time) { |
| 369 | continue; |
| 370 | } |
| 371 | annotations.add(note); |
| 372 | } |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | return scan(); |
| 377 | } |
| 378 | |
| 379 | } |
| 380 |
nothing calls this directly
no test coverage detected