Hyper API for C++ 0.0.20746
Hyper client library for C++ applications
Loading...
Searching...
No Matches
hyperapi::Inserter::ColumnMapping Class Referencefinal

Maps an expression to a column
More...

#include <Inserter.hpp>

Public Member Functions

const NamegetColumnName () const noexcept
 Returns the name of the column.
 
optional< std::string > getExpression () const noexcept
 Returns the expression mapped to the column.
 
 ColumnMapping (Name name)
 Creates a column mapping.
 
 ColumnMapping (Name name, std::string expression)
 Creates a column mapping.
 

Detailed Description

Maps an expression to a column

Examples
insert_data_with_expressions.cpp, and insert_spatial_data_to_a_hyper_file.cpp.

Definition at line 27 of file Inserter.hpp.

Constructor & Destructor Documentation

◆ ColumnMapping() [1/2]

hyperapi::Inserter::ColumnMapping::ColumnMapping ( Name  name)

Creates a column mapping.

Parameters
nameThe name

◆ ColumnMapping() [2/2]

hyperapi::Inserter::ColumnMapping::ColumnMapping ( Name  name,
std::string  expression 
)

Creates a column mapping.

Parameters
nameThe name
expressionThe expression

Member Function Documentation

◆ getColumnName()

const Name & hyperapi::Inserter::ColumnMapping::getColumnName ( ) const
inlinenoexcept

Returns the name of the column.

Definition at line 32 of file Inserter.hpp.

◆ getExpression()

optional< std::string > hyperapi::Inserter::ColumnMapping::getExpression ( ) const
inlinenoexcept

Returns the expression mapped to the column.

Definition at line 37 of file Inserter.hpp.


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