diff options
author | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2019-07-19 15:05:07 +0200 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2019-07-19 15:05:07 +0200 |
commit | 76e142fd3b7dd90e6ba0bc9cd85ee83c207aff43 (patch) | |
tree | 5dec598e4632675e4643c549fd9d2dc38e7486b5 /vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandler.java | |
parent | 2d3c0e73105c65c5d3649b09f79d81a5f97cb661 (diff) |
Support `cluster` parameter for Document V1 Get operations
Makes point lookup cluster routing functionality equal to that of
visiting operations. Especially useful as the difference between
these is minimal when used via the Document V1 REST API.
Diffstat (limited to 'vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandler.java')
-rw-r--r-- | vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandler.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandler.java b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandler.java index a6fdcb10a00..848fe4b5726 100644 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandler.java +++ b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/OperationHandler.java @@ -101,6 +101,10 @@ public interface OperationHandler { default Optional<String> get(RestUri restUri, Optional<String> fieldSet) throws RestApiException { return get(restUri); } + + default Optional<String> get(RestUri restUri, Optional<String> fieldSet, Optional<String> cluster) throws RestApiException { + return get(restUri, fieldSet); + } /** Called just before this is disposed of */ default void shutdown() {} |