diff options
author | Henning Baldersheim <balder@oath.com> | 2018-07-26 13:37:49 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-07-26 13:37:49 +0200 |
commit | e78f728e723f15b2423c7d5556e4bf9bc47c2c6f (patch) | |
tree | 2690babd16e0371348b12cdf3a7335cea7b15ad7 /searchlib | |
parent | 7b29d355ecda19506885868476f2a9f884469fd9 (diff) |
Restructure for code reuse and hiding implementation.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/queryeval/idiversifier.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/queryeval/idiversifier.h b/searchlib/src/vespa/searchlib/queryeval/idiversifier.h new file mode 100644 index 00000000000..e77cb959eeb --- /dev/null +++ b/searchlib/src/vespa/searchlib/queryeval/idiversifier.h @@ -0,0 +1,16 @@ +// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#pragma once + +#include <cstdint> + +namespace search::queryeval { + +struct IDiversifier { + virtual ~IDiversifier() {} + /** + * Will tell if this document should be kept, and update state for further filtering. + */ + virtual bool accepted(uint32_t docId) = 0; +}; +} |