use of org.apache.drill.exec.store.sys.store.DataChangeVersion in project drill by apache.
the class TestZookeeperClient method testGetWithVersion.
@Test
public void testGetWithVersion() {
client.put(path, data);
DataChangeVersion version0 = new DataChangeVersion();
client.get(path, version0);
assertEquals("Versions should match", 0, version0.getVersion());
client.put(path, data);
DataChangeVersion version1 = new DataChangeVersion();
client.get(path, version1);
assertEquals("Versions should match", 1, version1.getVersion());
}
use of org.apache.drill.exec.store.sys.store.DataChangeVersion in project drill by apache.
the class TestZookeeperClient method testHasPathTrueWithVersion.
@Test
public void testHasPathTrueWithVersion() {
client.put(path, data);
DataChangeVersion version0 = new DataChangeVersion();
assertTrue(client.hasPath(path, true, version0));
assertEquals("Versions should match", 0, version0.getVersion());
client.put(path, data);
DataChangeVersion version1 = new DataChangeVersion();
assertTrue(client.hasPath(path, true, version1));
assertEquals("Versions should match", 1, version1.getVersion());
}
use of org.apache.drill.exec.store.sys.store.DataChangeVersion in project drill by apache.
the class TestZookeeperClient method testPutWithMatchingVersion.
@Test
public void testPutWithMatchingVersion() {
client.put(path, data);
DataChangeVersion version = new DataChangeVersion();
client.get(path, version);
client.put(path, data, version);
}
Aggregations