Kùzu C++ API
Loading...
Searching...
No Matches
flat_tuple.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <memory>
5#include <string>
6#include <vector>
7
8#include "api.h"
9#include "value.h"
10
11namespace kuzu {
12namespace processor {
13
17class FlatTuple {
18public:
19 void addValue(std::unique_ptr<common::Value> value);
20
24 KUZU_API uint32_t len() const;
25
30 KUZU_API common::Value* getValue(uint32_t idx) const;
31
32 KUZU_API std::string toString();
33
41 KUZU_API std::string toString(const std::vector<uint32_t>& colsWidth,
42 const std::string& delimiter = "|", uint32_t maxWidth = -1);
43
44private:
45 std::vector<std::unique_ptr<common::Value>> values;
46};
47
48} // namespace processor
49} // namespace kuzu
#define KUZU_API
Definition api.h:25
Definition value.h:27
Stores a vector of Values.
Definition flat_tuple.h:17
KUZU_API common::Value * getValue(uint32_t idx) const
KUZU_API std::string toString(const std::vector< uint32_t > &colsWidth, const std::string &delimiter="|", uint32_t maxWidth=-1)
void addValue(std::unique_ptr< common::Value > value)
KUZU_API std::string toString()
KUZU_API uint32_t len() const
Definition alter_type.h:5