blob: 04a86d0af915dd9b22d5f7382d9deb90ac8873b4 (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "slotmatcher.h"
#include <vespa/memfilepersistence/memfile/memfile.h>
namespace storage {
namespace memfile {
Types::Timestamp
SlotMatcher::Slot::getTimestamp() const
{
return _slot.getTimestamp();
}
bool
SlotMatcher::Slot::isRemove() const
{
return _slot.deleted();
}
const document::GlobalId&
SlotMatcher::Slot::getGlobalId() const
{
return _slot.getGlobalId();
}
document::Document::UP
SlotMatcher::Slot::getDocument(bool headerOnly) const
{
return _file.getDocument(_slot, headerOnly ? HEADER_ONLY : ALL);
}
document::DocumentId
SlotMatcher::Slot::getDocumentId() const
{
return _file.getDocumentId(_slot);
}
} // memfile
} // storage
|