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

Method deleteRangeMultiple

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

Source from the content-addressed store, hash-verified

527 }
528
529 @Test
530 public void deleteRangeMultiple() throws Exception {
531 setupStorage(false);
532 final int count = Annotation.deleteRange(tsdb,
533 new byte[] { 0, 0, 1, 0, 0, 1, 0, 0, 1}, 1388450560000L,
534 1388450568000L).joinUninterruptibly();
535 assertEquals(2, count);
536 assertNull(storage.getColumn(tsuid_row_key,
537 new byte[] { 1, 0x0A, 0x02 }));
538 assertNull(storage.getColumn(tsuid_row_key,
539 new byte[] { 1, 0x0A, 0x03 }));
540 assertNotNull(storage.getColumn(tsuid_row_key,
541 new byte[] { 0x50, 0x10 }));
542 assertNotNull(storage.getColumn(tsuid_row_key,
543 new byte[] { 0x50, 0x18 }));
544 }
545
546 @Test
547 public void deleteRangeMultipleSalted() throws Exception {

Callers

nothing calls this directly

Calls 3

setupStorageMethod · 0.95
deleteRangeMethod · 0.95
getColumnMethod · 0.80

Tested by

no test coverage detected