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

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

Detailed Description

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

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

Definition at line 31 of file nullable_column.hpp.

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

Classes

class  NullableDataHolder
 

Public Types

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

Public Member Functions

 NullableColumn (ColumnRef column)
 
- Public Member Functions inherited from storages::clickhouse::io::columns::ClickhouseColumn< NullableColumn< 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)
 

Member Typedef Documentation

◆ container_type

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

Definition at line 34 of file nullable_column.hpp.

◆ cpp_type

template<typename T >
using storages::clickhouse::io::columns::NullableColumn< T >::cpp_type = std::optional<typename T::cpp_type>

Definition at line 33 of file nullable_column.hpp.

◆ iterator_data

template<typename T >
using storages::clickhouse::io::columns::NullableColumn< T >::iterator_data = NullableDataHolder

Definition at line 60 of file nullable_column.hpp.

Constructor & Destructor Documentation

◆ NullableColumn()

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

Definition at line 68 of file nullable_column.hpp.

Member Function Documentation

◆ Serialize()

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

Definition at line 133 of file nullable_column.hpp.


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