#pragma once

#include <cstdint>
#include <string>

#include "common/assert.h"

namespace lbug {
namespace storage {

enum class ResidencyState : uint8_t { IN_MEMORY = 0, ON_DISK = 1 };

struct ResidencyStateUtils {
    static std::string toString(ResidencyState residencyState) {
        switch (residencyState) {
        case ResidencyState::IN_MEMORY: {
            return "IN_MEMORY";
        }
        case ResidencyState::ON_DISK: {
            return "ON_DISK";
        }
        default: {
            UNREACHABLE_CODE;
        }
        }
    }
};

} // namespace storage
} // namespace lbug
