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

Method parseFromColumn

test/meta/TestTSMeta.java:397–410  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

395 }
396
397 @Test
398 public void parseFromColumn() throws Exception {
399 final KeyValue column = mock(KeyValue.class);
400 when(column.key()).thenReturn(TSUID);
401 when(column.value()).thenReturn(storage.getColumn(META_TABLE,
402 TSUID,
403 NAME_FAMILY,
404 "ts_meta".getBytes(MockBase.ASCII())));
405 final TSMeta meta = TSMeta.parseFromColumn(tsdb, column, false)
406 .joinUninterruptibly();
407 assertNotNull(meta);
408 assertEquals("000001000001000001", meta.getTSUID());
409 assertNull(meta.getMetric());
410 }
411
412 @Test
413 public void parseFromColumnWithUIDMeta() throws Exception {

Callers

nothing calls this directly

Calls 8

ASCIIMethod · 0.95
parseFromColumnMethod · 0.95
getTSUIDMethod · 0.95
getMetricMethod · 0.95
getColumnMethod · 0.80
keyMethod · 0.65
valueMethod · 0.45
getBytesMethod · 0.45

Tested by

no test coverage detected