aboutsummaryrefslogtreecommitdiffstats
path: root/vdslib
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2023-03-31 14:31:37 +0100
committerJon Bratseth <bratseth@gmail.com>2023-03-31 14:31:37 +0100
commit1a360b51809d892d6b348f78db7ebd1590d77335 (patch)
tree0867de0b7804c22d1ea566882d01546154c696b9 /vdslib
parentd65d548169183b47b931b3c5e39ad5a8fae06ce5 (diff)
More understandable errors, and implement inner convert
Diffstat (limited to 'vdslib')
-rw-r--r--vdslib/src/main/java/com/yahoo/vdslib/VisitorStatistics.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/vdslib/src/main/java/com/yahoo/vdslib/VisitorStatistics.java b/vdslib/src/main/java/com/yahoo/vdslib/VisitorStatistics.java
index fda456ace05..14b44ede12a 100644
--- a/vdslib/src/main/java/com/yahoo/vdslib/VisitorStatistics.java
+++ b/vdslib/src/main/java/com/yahoo/vdslib/VisitorStatistics.java
@@ -2,6 +2,7 @@
package com.yahoo.vdslib;
public class VisitorStatistics {
+
int bucketsVisited = 0;
long documentsVisited = 0;
long bytesVisited = 0;
@@ -20,8 +21,8 @@ public class VisitorStatistics {
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).
+ * Returns the number of documents matching the document selection in the backend 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; }
@@ -30,9 +31,9 @@ public class VisitorStatistics {
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.
+ * Returns the 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; }
@@ -40,15 +41,14 @@ public class VisitorStatistics {
public long getBytesReturned() { return bytesReturned; }
public void setBytesReturned(long bytesReturned) { this.bytesReturned = bytesReturned; }
+ @Override
public String toString() {
- String out =
+ return
"Buckets visited: " + bucketsVisited + "\n" +
"Documents visited: " + documentsVisited + "\n" +
"Bytes visited: " + bytesVisited + "\n" +
"Documents returned: " + documentsReturned + "\n" +
"Bytes returned: " + bytesReturned + "\n";
-
- return out;
}
}