aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-11-19 00:58:49 +0100
committerGitHub <noreply@github.com>2023-11-19 00:58:49 +0100
commita1ca91a552fc679977eeae348c4822dd6f2d4acc (patch)
tree2f793a6c1130f5fc5bd37f8fa07b555722bf6ee5
parentf76b059c7a5deba46217e0fcd22b36ce79c4d3aa (diff)
parent22355a7c4623d1cc90ec85b5b7f151f5d5c7991d (diff)
Merge pull request #29378 from vespa-engine/toregge/hide-predicate-query-term-definition
Hide PredicateQueryTerm definition.
-rw-r--r--searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp7
-rw-r--r--searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.h8
2 files changed, 12 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp b/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp
index d1a2c26a75d..a25766fcc71 100644
--- a/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp
+++ b/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp
@@ -1,6 +1,7 @@
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "stackdumpiterator.h"
+#include <vespa/searchlib/query/tree/predicate_query_term.h>
#include <vespa/vespalib/util/compress.h>
#include <vespa/vespalib/objects/nbo.h>
@@ -274,4 +275,10 @@ SimpleQueryStackDumpIterator::readFuzzy(const char *&p) {
return true;
}
+std::unique_ptr<query::PredicateQueryTerm>
+SimpleQueryStackDumpIterator::getPredicateQueryTerm()
+{
+ return std::move(_predicate_query_term);
+}
+
}
diff --git a/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.h b/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.h
index dece4ecc0b6..7a6b3359223 100644
--- a/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.h
+++ b/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.h
@@ -3,8 +3,10 @@
#pragma once
#include "parse.h"
-#include <vespa/searchlib/query/tree/predicate_query_term.h>
#include <vespa/vespalib/stllike/string.h>
+#include <memory>
+
+namespace search::query { class PredicateQueryTerm; }
namespace search {
/**
@@ -45,7 +47,7 @@ private:
double _extraDoubleArg4;
double _extraDoubleArg5;
/** The predicate query specification */
- query::PredicateQueryTerm::UP _predicate_query_term;
+ std::unique_ptr<query::PredicateQueryTerm> _predicate_query_term;
VESPA_DLL_LOCAL vespalib::stringref read_stringref(const char *&p);
VESPA_DLL_LOCAL uint64_t readCompressedPositiveInt(const char *&p);
@@ -118,7 +120,7 @@ public:
uint32_t getFuzzyMaxEditDistance() const { return _extraIntArg1; }
uint32_t getFuzzyPrefixLength() const { return _extraIntArg2; }
- query::PredicateQueryTerm::UP getPredicateQueryTerm() { return std::move(_predicate_query_term); }
+ std::unique_ptr<query::PredicateQueryTerm> getPredicateQueryTerm();
vespalib::stringref getIndexName() const { return _curr_index_name; }
vespalib::stringref getTerm() const { return _curr_term; }