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

#pragma once

#include "i_direct_posting_store.h"

namespace search {

/**
 * Interface providing access to dictionary lookups and underlying posting lists that contains only docids.
 *
 * This posting store type is supported by some single-value attributes with fast-search.
 */
class IDocidPostingStore : public IDirectPostingStore {
public:
    using IteratorType = DocidIterator;

    virtual void create(vespalib::datastore::EntryRef idx, std::vector<DocidIterator>& dst) const = 0;
    virtual DocidIterator create(vespalib::datastore::EntryRef idx) const = 0;
};

}