summaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/matching/unpacking_iterators_optimizer.h
blob: fc08ae3cfdd9fe5e41282289a6d024cee281f257 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/query/tree/node.h>

namespace proton::matching {

/**
 * Unpacking iterators are indirectly optimized by augmenting the
 * query tree and by tagging appropriate query tree nodes as
 * expensive.
 **/
struct UnpackingIteratorsOptimizer {
    static search::query::Node::UP optimize(search::query::Node::UP root, bool has_white_list, bool always_mark_phrase_expensive);
};

}