aboutsummaryrefslogtreecommitdiffstats
path: root/vdslib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-01-31 22:30:03 +0100
committerGitHub <noreply@github.com>2022-01-31 22:30:03 +0100
commita1620d5103e9597b25548fca09c8d22a2ae261c0 (patch)
treea8f056c0cd62212c90f3311a0840e4b0dd9f6917 /vdslib
parent24cda01ea9617710a4ace346a51cf5860178e4c4 (diff)
parenta43665dd303b8ef2e5eee3ea7b11b12fdd734612 (diff)
Merge pull request #21001 from vespa-engine/vekterli/deprecate-legacy-visitor-functionality
Deprecate legacy visitor functionality
Diffstat (limited to 'vdslib')
-rw-r--r--vdslib/src/main/java/com/yahoo/vdslib/VisitorStatistics.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/vdslib/src/main/java/com/yahoo/vdslib/VisitorStatistics.java b/vdslib/src/main/java/com/yahoo/vdslib/VisitorStatistics.java
index f3bf6f4ed38..a79f3d5fb6d 100644
--- a/vdslib/src/main/java/com/yahoo/vdslib/VisitorStatistics.java
+++ b/vdslib/src/main/java/com/yahoo/vdslib/VisitorStatistics.java
@@ -23,22 +23,47 @@ public class VisitorStatistics {
public int getBucketsVisited() { return bucketsVisited; }
public void setBucketsVisited(int bucketsVisited) { this.bucketsVisited = bucketsVisited; }
+ /**
+ * @return the number of documents matching the document selection in the backend and that
+ * has been passed to the client-specified visitor instance (dumpvisitor, searchvisitor etc).
+ */
public long getDocumentsVisited() { return documentsVisited; }
public void setDocumentsVisited(long documentsVisited) { this.documentsVisited = documentsVisited; }
public long getBytesVisited() { return bytesVisited; }
public void setBytesVisited(long bytesVisited) { this.bytesVisited = bytesVisited; }
+ /**
+ * @return Number of documents returned to the visitor client by the backend. This number may
+ * be lower than that returned by getDocumentsVisited() since the client-specified visitor
+ * instance may further have filtered the set of documents returned by the backend.
+ */
public long getDocumentsReturned() { return documentsReturned; }
public void setDocumentsReturned(long documentsReturned) { this.documentsReturned = documentsReturned; }
public long getBytesReturned() { return bytesReturned; }
public void setBytesReturned(long bytesReturned) { this.bytesReturned = bytesReturned; }
+ /**
+ * @deprecated Use getDocumentsReturned() instead
+ */
+ @Deprecated(since = "7", forRemoval = true) // TODO: Vespa 8: remove
public long getSecondPassDocumentsReturned() { return secondPassDocumentsReturned; }
+ /**
+ * @deprecated only applies for deprecated "orderdoc" ID scheme
+ */
+ @Deprecated(since = "7", forRemoval = true)// TODO: Vespa 8: remove
public void setSecondPassDocumentsReturned(long secondPassDocumentsReturned) { this.secondPassDocumentsReturned = secondPassDocumentsReturned; }
+ /**
+ * @deprecated Use getBytesReturned() instead
+ */
+ @Deprecated(since = "7", forRemoval = true) // TODO: Vespa 8: remove
public long getSecondPassBytesReturned() { return secondPassBytesReturned; }
+ /**
+ * @deprecated only applies for deprecated "orderdoc" ID scheme
+ */
+ @Deprecated(since = "7", forRemoval = true) // TODO: Vespa 8: remove
public void setSecondPassBytesReturned(long secondPassBytesReturned) { this.secondPassBytesReturned = secondPassBytesReturned; }
public String toString() {