Lbug 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 <string>
5#include <vector>
6
7#include "api.h"
8#include "value.h"
9
10namespace lbug {
11namespace processor {
12
16class FlatTuple {
17public:
18 explicit FlatTuple(const std::vector<common::LogicalType>& types);
19
21
32
39
46
51 LBUG_API std::string toString() const;
52
60 LBUG_API std::string toString(const std::vector<uint32_t>& colsWidth,
61 const std::string& delimiter = "|", uint32_t maxWidth = -1);
62
63private:
64 std::vector<common::Value> values;
65};
66
67} // namespace processor
68} // namespace lbug
#define LBUG_API
Definition api.h:25
Definition value.h:28
FlatTuple(const std::vector< common::LogicalType > &types)
LBUG_API common::Value * getValue(common::idx_t idx)
Get a pointer to the value at the specified index.
LBUG_API std::string toString(const std::vector< uint32_t > &colsWidth, const std::string &delimiter="|", uint32_t maxWidth=-1)
LBUG_API common::Value & operator[](common::idx_t idx)
Access the value at the specified index by reference.
LBUG_API common::idx_t len() const
LBUG_API const common::Value & operator[](common::idx_t idx) const
Access the value at the specified index by const reference.
LBUG_API std::string toString() const
Convert the FlatTuple to a string representation.
uint32_t idx_t
Definition types.h:45
Definition client_context.h:41
Definition array_utils.h:7