Lbug C++ API
Loading...
Searching...
No Matches
lbug::processor::FlatTuple Class Reference

Stores a vector of Values. More...

#include <flat_tuple.h>

Public Member Functions

 FlatTuple (const std::vector< common::LogicalType > &types)
 DELETE_COPY_AND_MOVE (FlatTuple)
LBUG_API common::idx_t len () const
LBUG_API common::ValuegetValue (common::idx_t idx)
 Get a pointer to the value at the specified index.
LBUG_API common::Valueoperator[] (common::idx_t idx)
 Access the value at the specified index by reference.
LBUG_API const common::Valueoperator[] (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.
LBUG_API std::string toString (const std::vector< uint32_t > &colsWidth, const std::string &delimiter="|", uint32_t maxWidth=-1)

Detailed Description

Stores a vector of Values.

Constructor & Destructor Documentation

◆ FlatTuple()

lbug::processor::FlatTuple::FlatTuple ( const std::vector< common::LogicalType > & types)
explicit

Member Function Documentation

◆ DELETE_COPY_AND_MOVE()

lbug::processor::FlatTuple::DELETE_COPY_AND_MOVE ( FlatTuple )

◆ getValue()

LBUG_API common::Value * lbug::processor::FlatTuple::getValue ( common::idx_t idx)

Get a pointer to the value at the specified index.

Parameters
idxThe index of the value to retrieve.
Returns
A pointer to the Value at the specified index.

◆ len()

LBUG_API common::idx_t lbug::processor::FlatTuple::len ( ) const
Returns
number of values in the FlatTuple.

◆ operator[]() [1/2]

LBUG_API common::Value & lbug::processor::FlatTuple::operator[] ( common::idx_t idx)

Access the value at the specified index by reference.

Parameters
idxThe index of the value to access.
Returns
A reference to the Value at the specified index.

◆ operator[]() [2/2]

LBUG_API const common::Value & lbug::processor::FlatTuple::operator[] ( common::idx_t idx) const

Access the value at the specified index by const reference.

Parameters
idxThe index of the value to access.
Returns
A const reference to the Value at the specified index.

◆ toString() [1/2]

LBUG_API std::string lbug::processor::FlatTuple::toString ( ) const

Convert the FlatTuple to a string representation.

Returns
A string representation of all values in the FlatTuple.

◆ toString() [2/2]

LBUG_API std::string lbug::processor::FlatTuple::toString ( const std::vector< uint32_t > & colsWidth,
const std::string & delimiter = "|",
uint32_t maxWidth = -1 )
Parameters
colsWidthThe length of each column
delimiterThe delimiter to separate each value.
maxWidthThe maximum length of each column. Only the first maxWidth number of characters of each column will be displayed.
Returns
all values in string format.

The documentation for this class was generated from the following file: