blob: 4bd143a077e15c6fe6fa1cdc6bddeedd1d9a552a (
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 <vespa/vespalib/stllike/string.h>
#include <vespa/document/bucket/bucketspace.h>
#include <memory>
namespace proton {
/**
* Interface defining the communication needed with the owner of the
* document sub db.
*/
class IDocumentSubDBOwner
{
public:
virtual ~IDocumentSubDBOwner() {}
virtual document::BucketSpace getBucketSpace() const = 0;
virtual vespalib::string getName() const = 0;
virtual uint32_t getDistributionKey() const = 0;
};
} // namespace proton
|