blob: 39de89eeb2e7c1000e16e3237dfbad4f510bc9ba (
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 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>
namespace search {
/*
* Class representing the relative naming of a underlying file for a
* data store.
*/
class DataStoreFileChunkId
{
uint64_t _nameId;
public:
DataStoreFileChunkId(uint64_t nameId_in)
: _nameId(nameId_in)
{
}
uint64_t nameId() const { return _nameId; }
vespalib::string createName(const vespalib::string &baseName) const;
bool operator<(const DataStoreFileChunkId &rhs) const {
return _nameId < rhs._nameId;
}
};
} // namespace search
|