Kùzu C++ API
Loading...
Searching...
No Matches
storage_driver.h
Go to the documentation of this file.
1#pragma once
2
3#include "database.h"
4
5namespace kuzu {
6namespace storage {
7class Table;
8}
9
10namespace main {
11
12class ClientContext;
14public:
15 explicit StorageDriver(Database* database);
16
18
19 void scan(const std::string& nodeName, const std::string& propertyName,
20 common::offset_t* offsets, size_t numOffsets, uint8_t* result, size_t numThreads);
21
22 // TODO: Should merge following two functions into a single one.
23 uint64_t getNumNodes(const std::string& nodeName);
24 uint64_t getNumRels(const std::string& relName);
25
26private:
27 void scanColumn(storage::Table* table, common::column_id_t columnID, common::offset_t* offsets,
28 size_t size, uint8_t* result);
29
30private:
31 Database* database;
32 std::unique_ptr<ClientContext> clientContext;
33};
34
35} // namespace main
36} // namespace kuzu
#define KUZU_API
Definition api.h:25
Database class is the main class of KùzuDB. It manages all database components.
Definition database.h:81
Definition storage_driver.h:13
void scan(const std::string &nodeName, const std::string &propertyName, common::offset_t *offsets, size_t numOffsets, uint8_t *result, size_t numThreads)
uint64_t getNumRels(const std::string &relName)
StorageDriver(Database *database)
uint64_t getNumNodes(const std::string &nodeName)
uint32_t column_id_t
Definition types.h:38
uint64_t offset_t
Definition types.h:74
Definition array_utils.h:7