Repository: asterixdb Updated Branches: refs/heads/master 60be06537 -> ab1013cb9
[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 Reviewed-on: https://asterix-gerrit.ics.uci.edu/2267 Sonar-Qube: Jenkins <[email protected]> Tested-by: Jenkins <[email protected]> Integration-Tests: Jenkins <[email protected]> Reviewed-by: Michael Blow <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/ab1013cb Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/ab1013cb Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/ab1013cb Branch: refs/heads/master Commit: ab1013cb90d3ebaba0b55821215eb927fb0b5478 Parents: 60be065 Author: Murtadha Hubail <[email protected]> Authored: Sun Jan 7 15:56:28 2018 +0300 Committer: Murtadha Hubail <[email protected]> Committed: Mon Jan 8 10:01:40 2018 -0800 ---------------------------------------------------------------------- .../apache/asterix/common/api/ICoordinationService.java | 10 +++++++++- .../asterix/runtime/utils/NoOpCoordinationService.java | 5 +++++ 2 files changed, 14 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/asterixdb/blob/ab1013cb/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java ---------------------------------------------------------------------- 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 @@ public interface ICoordinationService { * @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 http://git-wip-us.apache.org/repos/asf/asterixdb/blob/ab1013cb/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java ---------------------------------------------------------------------- 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 class NoOpCoordinationService implements ICoordinationService { public Optional<byte[]> get(String key) { throw new UnsupportedOperationException(); } + + @Override + public void delete(String key) { + throw new UnsupportedOperationException(); + } }
