MCPcopy Index your code
hub / github.com/OpenTSDB/asynchbase / appendOnceNoReturnRead

Method appendOnceNoReturnRead

test/TestIntegration.java:229–246  ·  view source on GitHub ↗

Call Append on a column for the first time and validate that it was created.

()

Source from the content-addressed store, hash-verified

227 * created.
228 */
229 @Test
230 public void appendOnceNoReturnRead() throws Exception {
231 client.setFlushInterval(FAST_FLUSH);
232 truncateTable(table);
233 final double write_time = System.currentTimeMillis();
234 final AppendRequest append = new AppendRequest(table, "a", family, "q", "val");
235 final GetRequest get = new GetRequest(table, "a", family, "q");
236 assertNull(client.append(append).join());
237 final ArrayList<KeyValue> kvs = client.get(get).join();
238 assertSizeIs(1, kvs);
239 final KeyValue kv = kvs.get(0);
240 assertEq("a", kv.key());
241 assertEq(family, kv.family());
242 assertEq("q", kv.qualifier());
243 assertEq("val", kv.value());
244 final double kvts = kv.timestamp();
245 assertEquals(write_time, kvts, 5000.0); // Within five seconds.
246 }
247
248 /**
249 * Call append on a column twice, the first time to create it, the second to

Callers

nothing calls this directly

Calls 11

truncateTableMethod · 0.95
assertSizeIsMethod · 0.95
assertEqMethod · 0.95
keyMethod · 0.95
familyMethod · 0.95
qualifierMethod · 0.95
valueMethod · 0.95
timestampMethod · 0.95
setFlushIntervalMethod · 0.80
appendMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected