summaryrefslogtreecommitdiffstats
path: root/streamingvisitors/src/vespa/vsm/common/docsum.h
diff options
context:
space:
mode:
Diffstat (limited to 'streamingvisitors/src/vespa/vsm/common/docsum.h')
-rw-r--r--streamingvisitors/src/vespa/vsm/common/docsum.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/streamingvisitors/src/vespa/vsm/common/docsum.h b/streamingvisitors/src/vespa/vsm/common/docsum.h
new file mode 100644
index 00000000000..49b84cb0783
--- /dev/null
+++ b/streamingvisitors/src/vespa/vsm/common/docsum.h
@@ -0,0 +1,22 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+#pragma once
+
+#include "document.h"
+
+namespace vsm {
+
+/**
+ Will represent a cache of the document summaries. -> Actual docsums will be
+ generated on the fly when requested. A document summary is accessed by its
+ documentId.
+*/
+
+class IDocSumCache
+{
+public:
+ virtual const Document & getDocSum(const search::DocumentIdT & docId) const = 0;
+ virtual ~IDocSumCache() { }
+};
+
+}
+