aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/index/i_field_length_inspector.h
blob: 0a8de39a3ed9b4a2b3c54e674481e819ae02bd70 (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 "field_length_info.h"
#include <vespa/vespalib/stllike/string.h>

namespace search::index {

/**
 * Interface used to inspect field length info for various index fields.
 */
class IFieldLengthInspector {
public:
    virtual ~IFieldLengthInspector() {}

    /**
     * Returns the field length info for the given index field, or empty info if the field is not found.
     */
    virtual FieldLengthInfo get_field_length_info(const vespalib::string& field_name) const = 0;
};

}