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 >:

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
 
using iterator
 

Public Member Functions

 NullableColumn (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

Definition at line 30 of file base_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

◆ begin()

Definition at line 34 of file base_column.hpp.

◆ end()

Definition at line 36 of file base_column.hpp.

◆ 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.

◆ Size()

size_t storages::clickhouse::io::columns::ClickhouseColumn< NullableColumn< T > >::Size ( ) const
inlineinherited

Definition at line 38 of file base_column.hpp.


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