mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:50:06 +00:00
Optimization of object listing by date
This commit is contained in:
parent
f452d3f15d
commit
da835d7226
4 changed files with 29 additions and 12 deletions
|
|
@ -35,7 +35,7 @@ public:
|
|||
std::string FindLatestKey() override;
|
||||
std::vector<std::chrono::system_clock::time_point>
|
||||
GetTimePointsByDate(std::chrono::system_clock::time_point date) override;
|
||||
std::pair<size_t, size_t>
|
||||
std::tuple<bool, size_t, size_t>
|
||||
ListObjects(std::chrono::system_clock::time_point date) override;
|
||||
std::shared_ptr<wsr88d::NexradFile>
|
||||
LoadObjectByKey(const std::string& key) override;
|
||||
|
|
|
|||
|
|
@ -64,10 +64,11 @@ public:
|
|||
*
|
||||
* @param date Date for which to list objects
|
||||
*
|
||||
* @return - New objects found for the given date
|
||||
* @return - Whether query was successful
|
||||
* - New objects found for the given date
|
||||
* - Total objects found for the given date
|
||||
*/
|
||||
virtual std::pair<size_t, size_t>
|
||||
virtual std::tuple<bool, size_t, size_t>
|
||||
ListObjects(std::chrono::system_clock::time_point date) = 0;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue