diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-11-13 09:46:39 +0000 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2019-01-21 15:09:26 +0100 |
commit | c8ae51ef7981fb3003b2816b056f127e8e3df97c (patch) | |
tree | c572d7297fcb66cedaa7d9ad3b3881e86e001d73 /container-search | |
parent | 8a292274bd5e3df677d5088acf07c6dad75ee7c8 (diff) |
remove streaming.headersonly option
Diffstat (limited to 'container-search')
-rw-r--r-- | container-search/src/main/java/com/yahoo/vespa/streamingvisitors/VdsVisitor.java | 2 | ||||
-rw-r--r-- | container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsVisitorTestCase.java | 6 |
2 files changed, 0 insertions, 8 deletions
diff --git a/container-search/src/main/java/com/yahoo/vespa/streamingvisitors/VdsVisitor.java b/container-search/src/main/java/com/yahoo/vespa/streamingvisitors/VdsVisitor.java index cfbea04a110..5288b28cad1 100644 --- a/container-search/src/main/java/com/yahoo/vespa/streamingvisitors/VdsVisitor.java +++ b/container-search/src/main/java/com/yahoo/vespa/streamingvisitors/VdsVisitor.java @@ -57,7 +57,6 @@ class VdsVisitor extends VisitorDataHandler implements Visitor { private static final CompoundName streamingUserid=new CompoundName("streaming.userid"); private static final CompoundName streamingGroupname=new CompoundName("streaming.groupname"); private static final CompoundName streamingSelection=new CompoundName("streaming.selection"); - private static final CompoundName streamingHeadersonly=new CompoundName("streaming.headersonly"); private static final CompoundName streamingFromtimestamp=new CompoundName("streaming.fromtimestamp"); private static final CompoundName streamingTotimestamp=new CompoundName("streaming.totimestamp"); private static final CompoundName streamingLoadtype=new CompoundName("streaming.loadtype"); @@ -153,7 +152,6 @@ class VdsVisitor extends VisitorDataHandler implements Visitor { params.setSessionTimeoutMs(query.getTimeout()); params.setVisitorLibrary("searchvisitor"); params.setLocalDataHandler(this); - params.setVisitHeadersOnly(query.properties().getBoolean(streamingHeadersonly)); if (query.properties().getDouble(streamingFromtimestamp) != null) { params.setFromTimestamp(query.properties().getDouble(streamingFromtimestamp).longValue()); } diff --git a/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsVisitorTestCase.java b/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsVisitorTestCase.java index d92512c9989..d7fc53a6c00 100644 --- a/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsVisitorTestCase.java +++ b/container-search/src/test/java/com/yahoo/vespa/streamingvisitors/VdsVisitorTestCase.java @@ -114,7 +114,6 @@ public class VdsVisitorTestCase { String userId = null; String groupName = null; String selection = null; - boolean headersOnly = false; long from = 0; long to = 0; String loadTypeName = null; @@ -140,7 +139,6 @@ public class VdsVisitorTestCase { userId = "1234"; groupName = null; selection = null; - headersOnly = true; from = 123; to = 456; loadTypeName = "low"; @@ -192,9 +190,6 @@ public class VdsVisitorTestCase { if (qa.selection != null) { queryString.append("&streaming.selection=").append(URLEncoder.encode(qa.selection, "UTF-8")); } - if (qa.headersOnly) { - queryString.append("&streaming.headersonly=").append(qa.headersOnly); - } if (qa.from != 0) { queryString.append("&streaming.fromtimestamp=").append(qa.from); } @@ -236,7 +231,6 @@ public class VdsVisitorTestCase { } else { assertEquals(docType + " and ( " + qa.selection + " )", params.getDocumentSelection()); } - assertEquals(qa.headersOnly, params.getVisitHeadersOnly()); assertEquals(qa.from, params.getFromTimestamp()); assertEquals(qa.to, params.getToTimestamp()); if (qa.loadTypeName != null && loadTypeSet.getNameMap().get(qa.loadTypeName) != null) { |