aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/matching/unpacking_iterators_optimizer.h
blob: d4bfadf6c3151b2ea1c269feaf0a6f3cdd8fb00b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. 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 split_unpacking_iterators);
};

}