aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/index/dictionaryfile.cpp
blob: 7c12d2b96591a8aa635da4bd6e175aa70221360c (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 Yahoo. 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);
}

}