summaryrefslogtreecommitdiffstats
path: root/container-accesslogging/src/main/java/com/yahoo/container/logging/HitCounts.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorn.christian@seime.no>2021-01-11 16:46:32 +0100
committerGitHub <noreply@github.com>2021-01-11 16:46:32 +0100
commitbd9d35c912d4c08c8e73b876348278fa968eceaa (patch)
tree14efcf04271a543c4bad424a9c42593529162abf /container-accesslogging/src/main/java/com/yahoo/container/logging/HitCounts.java
parentb8e785bc4df2af25e317e19b23d9f12c83dbdf6e (diff)
Revert "Revert "Merge container-accesslogging into jdisc_http_service""
Diffstat (limited to 'container-accesslogging/src/main/java/com/yahoo/container/logging/HitCounts.java')
-rw-r--r--container-accesslogging/src/main/java/com/yahoo/container/logging/HitCounts.java78
1 files changed, 0 insertions, 78 deletions
diff --git a/container-accesslogging/src/main/java/com/yahoo/container/logging/HitCounts.java b/container-accesslogging/src/main/java/com/yahoo/container/logging/HitCounts.java
deleted file mode 100644
index fed12281962..00000000000
--- a/container-accesslogging/src/main/java/com/yahoo/container/logging/HitCounts.java
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.container.logging;
-
-/**
- * A wrapper for hit counts, modelled after a search system.
- * Advanced database searches and similar could use these
- * structures as well.
- *
- * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
- */
-public class HitCounts {
-
- // see the javadoc for the accessors for short comments on each field
- private final int retrievedHits;
- private final int summaryCount;
- private final long totalHitCount;
- private final int requestedHits;
- private final int requestedOffset;
- private final Coverage coverage;
-
- HitCounts(int retrievedHits, int summaryCount, long totalHitCount, int requestedHits, int requestedOffset) {
- this(retrievedHits, summaryCount, totalHitCount, requestedHits, requestedOffset,
- new Coverage(1,1,1,0));
- }
-
- public HitCounts(int retrievedHits, int summaryCount, long totalHitCount,
- int requestedHits, int requestedOffset, Coverage coverage)
- {
-
- this.retrievedHits = retrievedHits;
- this.summaryCount = summaryCount;
- this.totalHitCount = totalHitCount;
- this.requestedHits = requestedHits;
- this.requestedOffset = requestedOffset;
- this.coverage = coverage;
- }
-
- /**
- * The number of hits returned by the server.
- * Compare to getRequestedHits().
- */
- public int getRetrievedHitCount() {
- return retrievedHits;
- }
-
- /**
- * The number of hit summaries ("document contents") fetched.
- */
- public int getSummaryCount() {
- return summaryCount;
- }
-
- /**
- * The total number of matching hits
- * for the request.
- */
- public long getTotalHitCount() {
- return totalHitCount;
- }
-
- /**
- * The number of hits requested by the user.
- * Compare to getRetrievedHitCount().
- */
- public int getRequestedHits() {
- return requestedHits;
- }
-
- /**
- * The user requested offset into the linear mapping of the result space.
- */
- public int getRequestedOffset() {
- return requestedOffset;
- }
-
- public Coverage getCoverage() { return coverage; }
-
-}