IOLink  IOL_v1.6.1_release
iolink::DataFrameViewFactory Class Reference

Static Public Member Functions

static std::shared_ptr< DataFrameViewallocate (const Vector2u64 &shape, const std::string *columnNames, const DataType *columnDataTypes)
 This factory is aimed at creating a DataFrame view. More...
 
static std::shared_ptr< DataFrameViewallocate ()
 This factory aims to create an empty DataFrame view. More...
 

Member Function Documentation

◆ allocate() [1/2]

static std::shared_ptr<DataFrameView> iolink::DataFrameViewFactory::allocate ( )
static

This factory aims to create an empty DataFrame view.

Columns and rows can be added later.

◆ allocate() [2/2]

static std::shared_ptr<DataFrameView> iolink::DataFrameViewFactory::allocate ( const Vector2u64 shape,
const std::string *  columnNames,
const DataType columnDataTypes 
)
static

This factory is aimed at creating a DataFrame view.

Parameters
shapeshape of the allocated dataframe (column count, row count)
columnNamesArray which contains the name for each column
columnDataTypesArray which contains the data type of each column
Returns
an in-memory DataFrameView
Warning
No check is done on inputs. Pass arguments very carefully. columnNames and columnDataTypes shall have the same element count, and their size must be equal to shape[0].
column count and row count cannot be 0. To create an empty dataframe, use the parameterless allocate method.

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