diff options
Diffstat (limited to 'searchlib/src/vespa/searchlib/index/postinglistfile.cpp')
-rw-r--r-- | searchlib/src/vespa/searchlib/index/postinglistfile.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/searchlib/src/vespa/searchlib/index/postinglistfile.cpp b/searchlib/src/vespa/searchlib/index/postinglistfile.cpp index a9b9417b684..a9dee8282ed 100644 --- a/searchlib/src/vespa/searchlib/index/postinglistfile.cpp +++ b/searchlib/src/vespa/searchlib/index/postinglistfile.cpp @@ -11,11 +11,7 @@ PostingListFileSeqRead::PostingListFileSeqRead() { } - -PostingListFileSeqRead::~PostingListFileSeqRead() -{ -} - +PostingListFileSeqRead::~PostingListFileSeqRead() = default; void PostingListFileSeqRead:: @@ -24,7 +20,6 @@ getParams(PostingListParams ¶ms) params.clear(); } - void PostingListFileSeqRead:: setFeatureParams(const PostingListParams ¶ms) @@ -32,7 +27,6 @@ setFeatureParams(const PostingListParams ¶ms) (void) params; } - void PostingListFileSeqRead:: getFeatureParams(PostingListParams ¶ms) @@ -40,18 +34,15 @@ getFeatureParams(PostingListParams ¶ms) params.clear(); } - PostingListFileSeqWrite::PostingListFileSeqWrite() : _counts() { } - PostingListFileSeqWrite::~PostingListFileSeqWrite() { } - void PostingListFileSeqWrite:: setParams(const PostingListParams ¶ms) @@ -59,7 +50,6 @@ setParams(const PostingListParams ¶ms) (void) params; } - void PostingListFileSeqWrite:: getParams(PostingListParams ¶ms) @@ -67,7 +57,6 @@ getParams(PostingListParams ¶ms) params.clear(); } - void PostingListFileSeqWrite:: setFeatureParams(const PostingListParams ¶ms) @@ -75,7 +64,6 @@ setFeatureParams(const PostingListParams ¶ms) (void) params; } - void PostingListFileSeqWrite:: getFeatureParams(PostingListParams ¶ms) @@ -83,26 +71,22 @@ getFeatureParams(PostingListParams ¶ms) params.clear(); } - PostingListFileRandRead:: PostingListFileRandRead() : _memoryMapped(false) { } - PostingListFileRandRead::~PostingListFileRandRead() { } - void PostingListFileRandRead::afterOpen(FastOS_FileInterface &file) { - _memoryMapped = file.MemoryMapPtr(0) != NULL; + _memoryMapped = file.MemoryMapPtr(0) != nullptr; } - PostingListFileRandReadPassThrough:: PostingListFileRandReadPassThrough(PostingListFileRandRead *lower, bool ownLower) @@ -111,14 +95,12 @@ PostingListFileRandReadPassThrough(PostingListFileRandRead *lower, { } - PostingListFileRandReadPassThrough::~PostingListFileRandReadPassThrough() { if (_ownLower) delete _lower; } - search::queryeval::SearchIterator * PostingListFileRandReadPassThrough:: createIterator(const PostingListCounts &counts, @@ -129,7 +111,6 @@ createIterator(const PostingListCounts &counts, return _lower->createIterator(counts, handle, matchData, usebitVector); } - void PostingListFileRandReadPassThrough:: readPostingList(const PostingListCounts &counts, @@ -141,7 +122,6 @@ readPostingList(const PostingListCounts &counts, handle); } - bool PostingListFileRandReadPassThrough::open(const vespalib::string &name, const TuneFileRandRead &tuneFileRead) @@ -151,7 +131,6 @@ PostingListFileRandReadPassThrough::open(const vespalib::string &name, return ret; } - bool PostingListFileRandReadPassThrough::close() { |