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

Method syncToStorageSalted

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

Source from the content-addressed store, hash-verified

252 }
253
254 @Test
255 public void syncToStorageSalted() throws Exception {
256 setupStorage(true);
257 note.setTSUID(TSUID);
258 note.setStartTime(1388450562L);
259 note.setDescription("Synced!");
260 note.syncToStorage(tsdb, false).joinUninterruptibly();
261 final byte[] col = storage.getColumn(tsuid_row_key,
262 new byte[] { 1, 0x0A, 0x02 });
263 note = JSON.parseToObject(col, Annotation.class);
264 assertEquals(TSUID, note.getTSUID());
265 assertEquals("Synced!", note.getDescription());
266 assertEquals("My Notes", note.getNotes());
267 }
268
269 @Test
270 public void syncToStorageMilliseconds() throws Exception {

Callers

nothing calls this directly

Calls 10

setupStorageMethod · 0.95
parseToObjectMethod · 0.95
getColumnMethod · 0.80
setStartTimeMethod · 0.65
setTSUIDMethod · 0.45
setDescriptionMethod · 0.45
syncToStorageMethod · 0.45
getTSUIDMethod · 0.45
getDescriptionMethod · 0.45
getNotesMethod · 0.45

Tested by

no test coverage detected