From 1a360b51809d892d6b348f78db7ebd1590d77335 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Fri, 31 Mar 2023 14:31:37 +0100 Subject: More understandable errors, and implement inner convert --- .../main/java/com/yahoo/vdslib/VisitorStatistics.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'vdslib') 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; } } -- cgit v1.2.3