Kùzu C++ API
Loading...
Searching...
No Matches
storage_driver.h
Go to the documentation of this file.
1#pragma once
2
3#include "internal_id_t.h"
4#include "database.h"
5
6namespace kuzu {
7namespace storage {
8class Table;
9}
10
11namespace main {
12
13class ClientContext;
15public:
16 explicit StorageDriver(Database* database);
17
19
20 void scan(const std::string& nodeName, const std::string& propertyName,
21 common::offset_t* offsets, size_t numOffsets, uint8_t* result, size_t numThreads);
22
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:14
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)
Definition table.h:134
property_id_t column_id_t
Definition types.h:36
uint64_t offset_t
Definition internal_id_t.h:22
Definition alter_type.h:5