MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / deleteRange

Method deleteRange

test/meta/TestAnnotation.java:461–476  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

459 }
460
461 @Test
462 public void deleteRange() throws Exception {
463 setupStorage(false);
464 final int count = Annotation.deleteRange(tsdb,
465 new byte[] { 0, 0, 1, 0, 0, 1, 0, 0, 1}, 1388450560000L,
466 1388450562000L).joinUninterruptibly();
467 assertEquals(1, count);
468 assertNull(storage.getColumn(tsuid_row_key,
469 new byte[] { 1, 0x0A, 0x02 }));
470 assertNotNull(storage.getColumn(tsuid_row_key,
471 new byte[] { 1, 0x0A, 0x03 }));
472 assertNotNull(storage.getColumn(tsuid_row_key,
473 new byte[] { 0x50, 0x10 }));
474 assertNotNull(storage.getColumn(tsuid_row_key,
475 new byte[] { 0x50, 0x18 }));
476 }
477
478 @Test
479 public void deleteRangeSalted() throws Exception {

Callers

nothing calls this directly

Calls 3

setupStorageMethod · 0.95
deleteRangeMethod · 0.95
getColumnMethod · 0.80

Tested by

no test coverage detected