Fixing initialization to just create a table on the cloud side.
[iotcloud.git] / version2 / src / java / simple_test / Read.java
1 import iotcloud.*;
2 import java.util.Set;
3 import java.util.HashSet;
4
5 class Read {
6     public static void main(String[] args) throws Exception {
7
8
9         Table t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 41567, -1);
10         // t1.initTable();
11         t1.rebuild();
12
13                 Set<IoTString> keySet = t1.getKeys();
14                 for(IoTString key : keySet) {
15                         System.out.print("Key: " + key.toString() + " -> ");
16                 IoTString val = t1.getCommitted(key);
17                         System.out.println("Value: " + val.toString());
18                 }
19     }
20 }