aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/memoryindex/i_field_index_collection.h
blob: bdfcdedbbf054ee35c773e057b785cf5066c02ee (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
24
25
26
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <cstdint>

namespace search::index { class FieldLengthCalculator; }

namespace search::memoryindex {

class FieldIndexRemover;
class IOrderedFieldIndexInserter;

/**
 * Interface class for a field index collection which can be used to
 * get the parts needed for wiring in field inverters.
 */
class IFieldIndexCollection {
public:
    virtual FieldIndexRemover &get_remover(uint32_t field_id) = 0;
    virtual IOrderedFieldIndexInserter &get_inserter(uint32_t field_id) = 0;
    virtual index::FieldLengthCalculator &get_calculator(uint32_t field_id) = 0;
    virtual ~IFieldIndexCollection() = default;
};

}