blob: f52093ac43ce46f681a08c97fe85bef0e5a21e6c (
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 Yahoo. 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
|