aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.h
blob: 4fc86001b80e249d0b8461033af69411b857d216 (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 Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/document/base/globalid.h>
#include <vespa/searchlib/attribute/not_implemented_attribute.h>

namespace proton {

/**
 * Abstract implementation of the IDocumentMetaStore interface
 * as an attribute vector.
 **/
class DocumentMetaStoreAttribute : public search::NotImplementedAttribute
{
public:
    explicit DocumentMetaStoreAttribute(const vespalib::string &name);
    ~DocumentMetaStoreAttribute() override;

    static const vespalib::string &getFixedName();

    size_t getFixedWidth() const override {
        return document::GlobalId::LENGTH;
    }
};

}