Adding test files to test changes.
[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                 int i = 1;
15                 for(IoTString key : keySet) {
16                         System.out.print(i + "- Key: " + key.toString() + " -> ");
17                 IoTString val = t1.getCommitted(key);
18                         System.out.println("Value: " + val.toString());
19                         i = i + 1;
20                 }
21     }
22 }