projects
/
iotcloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding a feature to read all keys and their respective values (Java side).
[iotcloud.git]
/
version2
/
src
/
java
/
iotcloud
/
Table.java
diff --git
a/version2/src/java/iotcloud/Table.java
b/version2/src/java/iotcloud/Table.java
index e4461523c02bf3d5d9f82827a00fdd648c032af7..6a05197fe3d68a6129c81601eaec02ef10a05650 100644
(file)
--- 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();
}
public synchronized void close() {
cloud.close();
}
+
+ // Return all keys in the table
+ public synchronized Set<IoTString> getKeys() {
+ return committedKeyValueTable.keySet();
+ }
public synchronized IoTString getCommitted(IoTString key) {
KeyValue kv = committedKeyValueTable.get(key);
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);
}
}
throw new Error("Server Error: Invalid HMAC Chain" + currSlot + " " + prevSlot);
}
}
-}
\ No newline at end of file
+}