aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/memoryindex/i_document_remove_listener.h
blob: b8e71f8673b2f27faaad26d957f453da4e7e69d1 (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
27
28
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

namespace search
{

namespace memoryindex
{

/**
 * Interface used to track which {wordRef, fieldId} pairs that are
 * removed from the memory index dictionary for a document.
 */
class IDocumentRemoveListener
{
public:
    virtual ~IDocumentRemoveListener() {}

    virtual void remove(const vespalib::stringref word,
                        uint32_t docId) = 0;
};


}

}