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

Method deleteRangeSalted

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

Source from the content-addressed store, hash-verified

476 }
477
478 @Test
479 public void deleteRangeSalted() throws Exception {
480 setupStorage(true);
481 final int count = Annotation.deleteRange(tsdb,
482 new byte[] { 0, 0, 1, 0, 0, 1, 0, 0, 1}, 1388450560000L,
483 1388450562000L).joinUninterruptibly();
484 assertEquals(1, count);
485 assertNull(storage.getColumn(tsuid_row_key,
486 new byte[] { 1, 0x0A, 0x02 }));
487 assertNotNull(storage.getColumn(tsuid_row_key,
488 new byte[] { 1, 0x0A, 0x03 }));
489 assertNotNull(storage.getColumn(tsuid_row_key,
490 new byte[] { 0x50, 0x10 }));
491 assertNotNull(storage.getColumn(tsuid_row_key,
492 new byte[] { 0x50, 0x18 }));
493 }
494
495 @Test
496 public void deleteRangeNone() throws Exception {

Callers

nothing calls this directly

Calls 3

setupStorageMethod · 0.95
deleteRangeMethod · 0.95
getColumnMethod · 0.80

Tested by

no test coverage detected