Murtadha Hubail has uploaded a new change for review.
https://asterix-gerrit.ics.uci.edu/2267
Change subject: [ASTERIXDB-2207][CLUS] Add Delete API to ICoordinationService
......................................................................
[ASTERIXDB-2207][CLUS] Add Delete API to ICoordinationService
- user model changes: no
- storage format changes: no
- interface changes: yes
- Add delete to ICoordinationService
Change-Id: Ie3a17fb1cec9350025cdf0ee340c80d7e0f1a9f0
---
M
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java
M
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java
2 files changed, 14 insertions(+), 1 deletion(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb
refs/changes/67/2267/1
diff --git
a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java
b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java
index 6f929b1..6146084 100644
---
a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java
+++
b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java
@@ -42,4 +42,12 @@
* @throws HyracksDataException
*/
Optional<byte[]> get(String key) throws HyracksDataException;
-}
+
+ /**
+ * Deletes the property with name {@code key} if exists.
+ *
+ * @param key
+ * @throws HyracksDataException
+ */
+ void delete(String key) throws HyracksDataException;
+}
\ No newline at end of file
diff --git
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java
index ed29f4b..6f9a8d2 100644
---
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java
+++
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java
@@ -38,4 +38,9 @@
public Optional<byte[]> get(String key) {
throw new UnsupportedOperationException();
}
+
+ @Override
+ public void delete(String key) {
+ throw new UnsupportedOperationException();
+ }
}
--
To view, visit https://asterix-gerrit.ics.uci.edu/2267
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie3a17fb1cec9350025cdf0ee340c80d7e0f1a9f0
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Murtadha Hubail <[email protected]>