X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=version2%2Fsrc%2Fjava%2Fsimple_test%2FRead.java;fp=version2%2Fsrc%2Fjava%2Fsimple_test%2FRead.java;h=71140b837bdfa049f1e42f1376912e3190959936;hb=12a5123dcee5f2d19bf729a71333359ca917df62;hp=0000000000000000000000000000000000000000;hpb=b687de99dbbbae04564b9fe4aad3e159782b8a26;p=iotcloud.git diff --git a/version2/src/java/simple_test/Read.java b/version2/src/java/simple_test/Read.java new file mode 100644 index 0000000..71140b8 --- /dev/null +++ b/version2/src/java/simple_test/Read.java @@ -0,0 +1,20 @@ +import iotcloud.*; +import java.util.Set; +import java.util.HashSet; + +class Read { + public static void main(String[] args) throws Exception { + + + Table t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 41567, -1); + // t1.initTable(); + t1.rebuild(); + + Set keySet = t1.getKeys(); + for(IoTString key : keySet) { + System.out.print("Key: " + key.toString() + " -> "); + IoTString val = t1.getCommitted(key); + System.out.println("Value: " + val.toString()); + } + } +}