aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/common/select_utils.h
blob: 29e83e75aa23a4a924ebb42f5b964aa50e09d6d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <vespa/vespalib/stllike/string.h>

namespace document::select { class FieldValueNode; }

namespace proton {

/**
 * Utility functions used as part of document selection integration in searchcore.
 */
struct SelectUtils {

    /**
     * Extracts the field name of the FieldValueNode and signals whether it is complex or not.
     */
    static vespalib::string extractFieldName(const document::select::FieldValueNode &expr, bool &isComplex);

};

}