Lightweight 0.20260303.0
Loading...
Searching...
No Matches
Lightweight::SqlBackup::ColumnBatch Struct Reference

Represents a batch of backup data in column-oriented format. More...

#include <SqlBackupFormats.hpp>

Public Types

using ColumnData = std::variant< std::monostate, std::vector< int64_t >, std::vector< double >, std::vector< std::string >, std::vector< std::vector< uint8_t > >, std::vector< bool > >
 Type representing columnar data storage for a batch.
 

Public Member Functions

void Clear ()
 Clears the internal buffer after a flush and releases memory.
 

Public Attributes

size_t rowCount = 0
 The number of rows in the batch.
 
std::vector< ColumnDatacolumns
 The column data arrays.
 
std::vector< std::vector< bool > > nullIndicators
 Null indicators for each column, parallel to columns.
 

Detailed Description

Represents a batch of backup data in column-oriented format.

Definition at line 25 of file SqlBackupFormats.hpp.

Member Typedef Documentation

◆ ColumnData

using Lightweight::SqlBackup::ColumnBatch::ColumnData = std::variant<std::monostate, std::vector<int64_t>, std::vector<double>, std::vector<std::string>, std::vector<std::vector<uint8_t> >, std::vector<bool> >

Type representing columnar data storage for a batch.

Definition at line 28 of file SqlBackupFormats.hpp.

Member Function Documentation

◆ Clear()

void Lightweight::SqlBackup::ColumnBatch::Clear ( )
inline

Clears the internal buffer after a flush and releases memory.

Definition at line 44 of file SqlBackupFormats.hpp.

References columns, nullIndicators, and rowCount.

Member Data Documentation

◆ rowCount

size_t Lightweight::SqlBackup::ColumnBatch::rowCount = 0

The number of rows in the batch.

Definition at line 37 of file SqlBackupFormats.hpp.

Referenced by Clear().

◆ columns

std::vector<ColumnData> Lightweight::SqlBackup::ColumnBatch::columns

The column data arrays.

Definition at line 39 of file SqlBackupFormats.hpp.

Referenced by Clear().

◆ nullIndicators

std::vector<std::vector<bool> > Lightweight::SqlBackup::ColumnBatch::nullIndicators

Null indicators for each column, parallel to columns.

Definition at line 41 of file SqlBackupFormats.hpp.

Referenced by Clear().


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