blob: 744b79593fa85ff2bf36af6e5f04c20106dd7851 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "dictionaryfile.h"
#include <vespa/fastos/file.h>
namespace search::index {
DictionaryFileSeqRead::~DictionaryFileSeqRead() = default;
DictionaryFileSeqWrite::~DictionaryFileSeqWrite() = default;
DictionaryFileRandRead::DictionaryFileRandRead()
: _memoryMapped(false)
{
}
DictionaryFileRandRead::~DictionaryFileRandRead() = default;
void
DictionaryFileRandRead::afterOpen(FastOS_FileInterface &file)
{
_memoryMapped = (file.MemoryMapPtr(0) != nullptr);
}
}
|