summaryrefslogtreecommitdiffstats
path: root/vespaclient-container-plugin
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-10-14 10:21:57 +0200
committerJon Marius Venstad <venstad@gmail.com>2020-10-14 10:21:57 +0200
commit78fa36414d239450a4e7da3919c74a16452bf52f (patch)
tree4e8ec81cd2d72d03d13d67d6156d8f8b467bb98f /vespaclient-container-plugin
parent8b9d957056e74ef79f50fd441fa2ab75afe4ca28 (diff)
Remove unused VisitorOptions class
Diffstat (limited to 'vespaclient-container-plugin')
-rw-r--r--vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java146
1 files changed, 0 insertions, 146 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java
index bc3946206e1..d5cd685cf2d 100644
--- a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java
+++ b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java
@@ -846,152 +846,6 @@ public class DocumentV1ApiHandler extends AbstractRequestHandler {
}
}
- // TODO jonmv: Inline this class.
- static class VisitorOptions {
-
- final Optional<String> cluster;
- final Optional<String> namespace;
- final Optional<String> documentType;
- final Optional<Group> group;
- final Optional<String> selection;
- final Optional<String> fieldSet;
- final Optional<String> continuation;
- final Optional<String> bucketSpace;
- final Optional<Integer> wantedDocumentCount;
- final Optional<Integer> concurrency;
-
- private VisitorOptions(Optional<String> cluster, Optional<String> documentType, Optional<String> namespace,
- Optional<Group> group, Optional<String> selection, Optional<String> fieldSet,
- Optional<String> continuation, Optional<String> bucketSpace,
- Optional<Integer> wantedDocumentCount, Optional<Integer> concurrency) {
- this.cluster = cluster;
- this.namespace = namespace;
- this.documentType = documentType;
- this.group = group;
- this.selection = selection;
- this.fieldSet = fieldSet;
- this.continuation = continuation;
- this.bucketSpace = bucketSpace;
- this.wantedDocumentCount = wantedDocumentCount;
- this.concurrency = concurrency;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- VisitorOptions that = (VisitorOptions) o;
- return cluster.equals(that.cluster) &&
- namespace.equals(that.namespace) &&
- documentType.equals(that.documentType) &&
- group.equals(that.group) &&
- selection.equals(that.selection) &&
- fieldSet.equals(that.fieldSet) &&
- continuation.equals(that.continuation) &&
- bucketSpace.equals(that.bucketSpace) &&
- wantedDocumentCount.equals(that.wantedDocumentCount) &&
- concurrency.equals(that.concurrency);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(cluster, namespace, documentType, group, selection, fieldSet, continuation, bucketSpace, wantedDocumentCount, concurrency);
- }
-
- @Override
- public String toString() {
- return "VisitorOptions{" +
- "cluster=" + cluster +
- ", namespace=" + namespace +
- ", documentType=" + documentType +
- ", group=" + group +
- ", selection=" + selection +
- ", fieldSet=" + fieldSet +
- ", continuation=" + continuation +
- ", bucketSpace=" + bucketSpace +
- ", wantedDocumentCount=" + wantedDocumentCount +
- ", concurrency=" + concurrency +
- '}';
- }
-
- public static Builder builder() { return new Builder(); }
-
-
- public static class Builder {
-
- private String cluster;
- private String documentType;
- private String namespace;
- private Group group;
- private String selection;
- private String fieldSet;
- private String continuation;
- private String bucketSpace;
- private Integer wantedDocumentCount;
- private Integer concurrency;
-
- public Builder cluster(String cluster) {
- this.cluster = cluster;
- return this;
- }
-
- public Builder documentType(String documentType) {
- this.documentType = documentType;
- return this;
- }
-
- public Builder namespace(String namespace) {
- this.namespace = namespace;
- return this;
- }
-
- public Builder group(Group group) {
- this.group = group;
- return this;
- }
-
- public Builder selection(String selection) {
- this.selection = selection;
- return this;
- }
-
- public Builder fieldSet(String fieldSet) {
- this.fieldSet = fieldSet;
- return this;
- }
-
- public Builder continuation(String continuation) {
- this.continuation = continuation;
- return this;
- }
-
- public Builder bucketSpace(String bucketSpace) {
- this.bucketSpace = bucketSpace;
- return this;
- }
-
- public Builder wantedDocumentCount(Integer wantedDocumentCount) {
- this.wantedDocumentCount = wantedDocumentCount;
- return this;
- }
-
- public Builder concurrency(Integer concurrency) {
- this.concurrency = concurrency;
- return this;
- }
-
- public VisitorOptions build() {
- return new VisitorOptions(Optional.ofNullable(cluster), Optional.ofNullable(documentType),
- Optional.ofNullable(namespace), Optional.ofNullable(group),
- Optional.ofNullable(selection), Optional.ofNullable(fieldSet),
- Optional.ofNullable(continuation), Optional.ofNullable(bucketSpace),
- Optional.ofNullable(wantedDocumentCount), Optional.ofNullable(concurrency));
- }
-
- }
-
- }
-
// ------------------------------------------------ Helpers ------------------------------------------------
private static Optional<String> getProperty(HttpRequest request, String name) {