46 const std::string
datatype = DataType().value();
48 const std::string md5 = Md5().
value();
49 md5sum_matches_ = collection_->initialize(
datatype, md5);
65 char* data = (
char*)buffer.get();
67 collection_->insert(data, serial_size, metadata);
72 const std::string& sort_by,
bool ascending)
const
74 if (!md5sum_matches_ && !metadata_only)
84 const std::string& sort_by,
88 return std::vector<typename MessageWithMetadata<M>::ConstPtr>(res.first, res.second);
93 const bool metadata_only)
const
96 if (res.first == res.second)
116 return collection_->
count();
122 return md5sum_matches_;