#pragma once
#include <string_view>
#include "error.h"
#include "tasks/task.h"
#include "types.h"
namespace eloqstore
{
class IndexPageManager;
class MemIndexPage;
class MappingSnapshot;
class ReadTask : public KvTask
{
public:
KvError Read(const TableIdent &tbl_ident,
std::string_view search_key,
std::string &value,
uint64_t ×tamp,
uint64_t &expire_ts);
KvError Floor(const TableIdent &tbl_id,
std::string_view search_key,
std::string &floor_key,
std::string &value,
uint64_t ×tamp,
uint64_t &expire_ts);
TaskType Type() const override
{
return TaskType::Read;
}
};
}