summaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchcommon/attribute/predicate_params.h
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/vespa/searchcommon/attribute/predicate_params.h')
-rw-r--r--searchlib/src/vespa/searchcommon/attribute/predicate_params.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/searchlib/src/vespa/searchcommon/attribute/predicate_params.h b/searchlib/src/vespa/searchcommon/attribute/predicate_params.h
index 133b7331689..7e9258ab5db 100644
--- a/searchlib/src/vespa/searchcommon/attribute/predicate_params.h
+++ b/searchlib/src/vespa/searchcommon/attribute/predicate_params.h
@@ -11,17 +11,16 @@ namespace search::attribute {
*/
class PredicateParams : public PersistentPredicateParams
{
- double _dense_posting_list_threshold;
+ float _dense_posting_list_threshold;
public:
- PredicateParams()
+ PredicateParams() noexcept
: PersistentPredicateParams(),
_dense_posting_list_threshold(0.4)
- {
- }
+ { }
- double dense_posting_list_threshold() const { return _dense_posting_list_threshold; }
- void setDensePostingListThreshold(double v) { _dense_posting_list_threshold = v; }
- bool operator==(const PredicateParams &rhs) const {
+ float dense_posting_list_threshold() const noexcept { return _dense_posting_list_threshold; }
+ void setDensePostingListThreshold(float v) noexcept { _dense_posting_list_threshold = v; }
+ bool operator==(const PredicateParams &rhs) const noexcept {
return (PersistentPredicateParams::operator==(rhs) &&
(_dense_posting_list_threshold == rhs._dense_posting_list_threshold));
}