summaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahoo-inc.com>2017-03-14 14:14:23 +0000
committerGeir Storli <geirst@yahoo-inc.com>2017-03-14 14:14:23 +0000
commitbd5402c9d12eb2a78c7ab8539d32d31d64885f83 (patch)
tree2fc099800e8e8fcd3b6ddb57c657f29e0718af2c /searchcommon
parent4d641153080e1e8fc5dfdd4bbf636887413e68ca (diff)
Re-indent.
Diffstat (limited to 'searchcommon')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/i_search_context.h79
1 files changed, 39 insertions, 40 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h b/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h
index bb6dfe0daf6..f5751135ef7 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h
+++ b/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h
@@ -17,52 +17,51 @@ class QueryTermBase;
namespace attribute {
+class ISearchContext {
+public:
+ virtual ~ISearchContext() {}
- class ISearchContext {
- public:
- virtual ~ISearchContext() {}
+ virtual unsigned int approximateHits() const = 0;
- virtual unsigned int approximateHits() const = 0;
+ /**
+ * Creates an attribute search iterator associated with this
+ * search context.
+ *
+ * @return attribute search iterator
+ *
+ * @param matchData the attribute match data used when
+ * unpacking data for a hit
+ *
+ * @param strict whether the iterator should be strict or not
+ **/
+ virtual std::unique_ptr<queryeval::SearchIterator>
+ createIterator(fef::TermFieldMatchData *matchData, bool strict) = 0;
- /**
- * Creates an attribute search iterator associated with this
- * search context.
- *
- * @return attribute search iterator
- *
- * @param matchData the attribute match data used when
- * unpacking data for a hit
- *
- * @param strict whether the iterator should be strict or not
- **/
- virtual std::unique_ptr<queryeval::SearchIterator>
- createIterator(fef::TermFieldMatchData *matchData, bool strict) = 0;
+ /**
+ * Creates an attribute search iterator associated with this
+ * search context. Postings lists are not used.
+ *
+ * @return attribute search iterator
+ *
+ * @param matchData the attribute match data used when
+ * unpacking data for a hit
+ *
+ * @param strict whether the iterator should be strict or not
+ **/
+ virtual std::unique_ptr<queryeval::SearchIterator>
+ createFilterIterator(fef::TermFieldMatchData *matchData, bool strict) = 0;
- /**
- * Creates an attribute search iterator associated with this
- * search context. Postings lists are not used.
- *
- * @return attribute search iterator
- *
- * @param matchData the attribute match data used when
- * unpacking data for a hit
- *
- * @param strict whether the iterator should be strict or not
- **/
- virtual std::unique_ptr<queryeval::SearchIterator>
- createFilterIterator(fef::TermFieldMatchData *matchData, bool strict) = 0;
+ /*
+ * Create temporary posting lists.
+ * Should be called before createIterator() is called.
+ */
+ virtual void fetchPostings(bool strict) = 0;
- /*
- * Create temporary posting lists. Should be called before
- * createIterator is called.
- */
- virtual void fetchPostings(bool strict) = 0;
- virtual bool valid() const = 0;
- virtual Int64Range getAsIntegerTerm() const = 0;
+ virtual bool valid() const = 0;
+ virtual Int64Range getAsIntegerTerm() const = 0;
+ virtual const QueryTermBase & queryTerm() const = 0;
- virtual const QueryTermBase & queryTerm() const = 0;
-
- };
+};
}
}