6#ifndef VERIBLOCK_POP_CPP_STORAGE_ADAPTORS_STORAGE_INTERFACE_HPP
7#define VERIBLOCK_POP_CPP_STORAGE_ADAPTORS_STORAGE_INTERFACE_HPP
19 virtual bool value(std::vector<uint8_t>& out)
const = 0;
21 virtual bool key(std::vector<uint8_t>& out)
const = 0;
23 virtual void next() = 0;
25 virtual bool valid()
const = 0;
27 virtual void seek_start() = 0;
29 virtual void seek(
const std::vector<uint8_t>& val) = 0;
35 virtual void write(
const std::vector<uint8_t>& key,
36 const std::vector<uint8_t>& value) = 0;
38 virtual void writeBatch() = 0;
44 virtual void write(
const std::vector<uint8_t>& key,
45 const std::vector<uint8_t>& value) = 0;
47 virtual bool read(
const std::vector<uint8_t>& key,
48 std::vector<uint8_t>& out) = 0;
50 virtual std::shared_ptr<WriteBatch> generateWriteBatch() = 0;
52 virtual std::shared_ptr<StorageIterator> generateIterator() = 0;