filesaver
filesaver::StorageService Class Referenceabstract

Interface for storage back-ends. More...

#include <StorageService.h>

Inheritance diagram for filesaver::StorageService:
filesaver::LevelDbStorageService

Public Member Functions

virtual ~StorageService ()
 
virtual int createTables ()=0
 
virtual int insertEntry (const FileSizePair &pair)=0
 
virtual int insertEntryBatch (const std::vector< FileSizePair > &pairs, size_t start, size_t end)=0
 
virtual std::optional< FileSizePairfetchEntry (const std::string &filepath)=0
 

Detailed Description

Interface for storage back-ends.

Definition at line 17 of file StorageService.h.

Constructor & Destructor Documentation

◆ ~StorageService()

virtual filesaver::StorageService::~StorageService ( )
inlinevirtual

Definition at line 20 of file StorageService.h.

Member Function Documentation

◆ createTables()

virtual int filesaver::StorageService::createTables ( )
pure virtual

Perform setup for this storage back-end

Implemented in filesaver::LevelDbStorageService.

◆ fetchEntry()

virtual std::optional<FileSizePair> filesaver::StorageService::fetchEntry ( const std::string &  filepath)
pure virtual

Fetch an entry from the store

Implemented in filesaver::LevelDbStorageService.

◆ insertEntry()

virtual int filesaver::StorageService::insertEntry ( const FileSizePair pair)
pure virtual

Insert an entry onto the store

Implemented in filesaver::LevelDbStorageService.

◆ insertEntryBatch()

virtual int filesaver::StorageService::insertEntryBatch ( const std::vector< FileSizePair > &  pairs,
size_t  start,
size_t  end 
)
pure virtual

The documentation for this class was generated from the following file: