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

#pragma once

#include "i_indexschema_inspector.h"
#include "config_hash.h"
#include <vespa/config-indexschema.h>

namespace proton {

/**
 * Inspector for an indexschema config.
 */
class IndexschemaInspector : public IIndexschemaInspector {
    using IndexschemaConfig = const vespa::config::search::internal::InternalIndexschemaType;
    ConfigHash<IndexschemaConfig::Indexfield> _hash;
public:
    IndexschemaInspector(const IndexschemaConfig &config);
    ~IndexschemaInspector();
    bool isStringIndex(const vespalib::string &name) const override;
};

} // namespace proton