userver: storages::clickhouse::io::columns::ArrayColumn< T > Class Template Reference
Loading...
Searching...
No Matches
storages::clickhouse::io::columns::ArrayColumn< T > Class Template Referencefinal

#include <userver/storages/clickhouse/io/columns/array_column.hpp>

Detailed Description

template<typename T>
class storages::clickhouse::io::columns::ArrayColumn< T >

Represents ClickHouse Array(T) column, where T is a ClickhouseColumn as well.

Definition at line 27 of file array_column.hpp.

+ Inheritance diagram for storages::clickhouse::io::columns::ArrayColumn< T >:
+ Collaboration diagram for storages::clickhouse::io::columns::ArrayColumn< T >:

Classes

class  ArrayDataHolder
 

Public Types

using cpp_type = std::vector<typename T::cpp_type>
 
using container_type = std::vector<cpp_type>
 
using iterator_data = ArrayDataHolder
 
- Public Types inherited from storages::clickhouse::io::columns::ClickhouseColumn< ArrayColumn< T > >
using iterator
 

Public Member Functions

 ArrayColumn (ColumnRef column)
 
- Public Member Functions inherited from storages::clickhouse::io::columns::ClickhouseColumn< ArrayColumn< T > >
 ClickhouseColumn (ColumnRef column)
 
iterator begin () const
 
iterator end () const
 
size_t Size () const
 

Static Public Member Functions

static ColumnRef Serialize (const container_type &from)
 
static cpp_type RetrieveElement (const ColumnRef &ref, std::size_t ind)
 

Member Typedef Documentation

◆ container_type

template<typename T >
using storages::clickhouse::io::columns::ArrayColumn< T >::container_type = std::vector<cpp_type>

Definition at line 30 of file array_column.hpp.

◆ cpp_type

template<typename T >
using storages::clickhouse::io::columns::ArrayColumn< T >::cpp_type = std::vector<typename T::cpp_type>

Definition at line 29 of file array_column.hpp.

◆ iterator_data

template<typename T >
using storages::clickhouse::io::columns::ArrayColumn< T >::iterator_data = ArrayDataHolder

Definition at line 52 of file array_column.hpp.

Constructor & Destructor Documentation

◆ ArrayColumn()

template<typename T >
storages::clickhouse::io::columns::ArrayColumn< T >::ArrayColumn ( ColumnRef column)

Definition at line 107 of file array_column.hpp.

Member Function Documentation

◆ RetrieveElement()

template<typename T >
ArrayColumn< T >::cpp_type storages::clickhouse::io::columns::ArrayColumn< T >::RetrieveElement ( const ColumnRef & ref,
std::size_t ind )
static

Definition at line 137 of file array_column.hpp.

◆ Serialize()

template<typename T >
ColumnRef storages::clickhouse::io::columns::ArrayColumn< T >::Serialize ( const container_type & from)
static

Definition at line 111 of file array_column.hpp.


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