Column Store
Public Member Functions | Private Attributes | List of all members
ColumnStore::DataValue Class Reference

Implementation of a single data element. More...

#include <DataRecord.h>

Collaboration diagram for ColumnStore::DataValue:
Collaboration graph

Public Member Functions

 DataValue (std::any value)
 
template<typename T >
const T as () const
 Extracts value by type. More...
 
void operator= (std::any value)
 
std::any get ()
 
 operator int ()
 
 operator float ()
 
 operator std::string ()
 

Private Attributes

std::any value
 

Detailed Description

Implementation of a single data element.

The object can hold any data type. The actual data can be extracted by using as<T>() function where T is the type. Type information itself is not stored in the DataValue object and has to be inferred from DataRecordMetadata objects.

See also
DataRecord
DataRecordMetadata

Constructor & Destructor Documentation

◆ DataValue()

ColumnStore::DataValue::DataValue ( std::any  value)
inline

Member Function Documentation

◆ as()

template<typename T >
const T ColumnStore::DataValue::as ( ) const
inline

Extracts value by type.

Template Parameters
Tthe type of data stored in the value
Returns
actual datavalue after casting
Here is the caller graph for this function:

◆ get()

std::any ColumnStore::DataValue::get ( )
inline

◆ operator float()

ColumnStore::DataValue::operator float ( )
inline

◆ operator int()

ColumnStore::DataValue::operator int ( )
inline

◆ operator std::string()

ColumnStore::DataValue::operator std::string ( )
inline

◆ operator=()

void ColumnStore::DataValue::operator= ( std::any  value)
inline

Member Data Documentation

◆ value

std::any ColumnStore::DataValue::value
private

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