X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=blobdiff_plain;f=version2%2Fsrc%2Fjava%2Fiotcloud%2FTable.java;h=6a05197fe3d68a6129c81601eaec02ef10a05650;hp=e4461523c02bf3d5d9f82827a00fdd648c032af7;hb=12a5123dcee5f2d19bf729a71333359ca917df62;hpb=b687de99dbbbae04564b9fe4aad3e159782b8a26 diff --git a/version2/src/java/iotcloud/Table.java b/version2/src/java/iotcloud/Table.java index e446152..6a05197 100644 --- a/version2/src/java/iotcloud/Table.java +++ b/version2/src/java/iotcloud/Table.java @@ -299,6 +299,11 @@ final public class Table { public synchronized void close() { cloud.close(); } + + // Return all keys in the table + public synchronized Set getKeys() { + return committedKeyValueTable.keySet(); + } public synchronized IoTString getCommitted(IoTString key) { KeyValue kv = committedKeyValueTable.get(key); @@ -2745,4 +2750,4 @@ final public class Table { throw new Error("Server Error: Invalid HMAC Chain" + currSlot + " " + prevSlot); } } -} \ No newline at end of file +}