summaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/index/postinglistfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/vespa/searchlib/index/postinglistfile.cpp')
-rw-r--r--searchlib/src/vespa/searchlib/index/postinglistfile.cpp25
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 &params)
params.clear();
}
-
void
PostingListFileSeqRead::
setFeatureParams(const PostingListParams &params)
@@ -32,7 +27,6 @@ setFeatureParams(const PostingListParams &params)
(void) params;
}
-
void
PostingListFileSeqRead::
getFeatureParams(PostingListParams &params)
@@ -40,18 +34,15 @@ getFeatureParams(PostingListParams &params)
params.clear();
}
-
PostingListFileSeqWrite::PostingListFileSeqWrite()
: _counts()
{
}
-
PostingListFileSeqWrite::~PostingListFileSeqWrite()
{
}
-
void
PostingListFileSeqWrite::
setParams(const PostingListParams &params)
@@ -59,7 +50,6 @@ setParams(const PostingListParams &params)
(void) params;
}
-
void
PostingListFileSeqWrite::
getParams(PostingListParams &params)
@@ -67,7 +57,6 @@ getParams(PostingListParams &params)
params.clear();
}
-
void
PostingListFileSeqWrite::
setFeatureParams(const PostingListParams &params)
@@ -75,7 +64,6 @@ setFeatureParams(const PostingListParams &params)
(void) params;
}
-
void
PostingListFileSeqWrite::
getFeatureParams(PostingListParams &params)
@@ -83,26 +71,22 @@ getFeatureParams(PostingListParams &params)
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()
{