Kuzu 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) const;
24 uint64_t getNumRels(const std::string& relName) const;
25
26private:
27 void scanColumn(storage::Table* table, common::column_id_t columnID,
28 const common::offset_t* offsets, size_t size, uint8_t* result) const;
29
30private:
31 std::unique_ptr<ClientContext> clientContext;
32};
33
34} // namespace main
35} // namespace kuzu
#define KUZU_API
Definition api.h:25
Contain client side configuration. We make profiler associated per query, so profiler is not maintain...
Definition client_context.h:68
Database class is the main class of Kuzu. It manages all database components.
Definition database.h:80
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 getNumNodes(const std::string &nodeName) const
StorageDriver(Database *database)
uint64_t getNumRels(const std::string &relName) const
uint32_t column_id_t
Definition types.h:41
uint64_t offset_t
Definition types.h:79
Definition bind_input.h:16
Definition copy_from_error.h:17
Definition array_utils.h:7