lbug 0.16.1

An in-process property graph database management system built for query speed and scalability
Documentation
#pragma once
#include "storage/table/column_chunk_data.h"
#include "transaction/transaction.h"
#include <format>

namespace lbug {
namespace storage {

class LBUG_API CachedColumn : public transaction::LocalCacheObject {
public:
    static std::string getKey(common::table_id_t tableID, common::property_id_t propertyID) {
        return std::format("{}-{}", tableID, propertyID);
    }
    explicit CachedColumn(common::table_id_t tableID, common::property_id_t propertyID)
        : LocalCacheObject{getKey(tableID, propertyID)}, columnChunks{} {}
    DELETE_BOTH_COPY(CachedColumn);

    std::vector<std::unique_ptr<ColumnChunkData>> columnChunks;
};

} // namespace storage
} // namespace lbug