OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ColumnList< T > Struct Template Reference

#include <heavydbTypes.h>

Public Member Functions

DEVICE ColumnList (int8_t **ptrs, const int64_t num_cols, const int64_t num_rows)
 
DEVICE int64_t size () const
 
DEVICE int64_t numCols () const
 
DEVICE Column< T > operator[] (const int index) const
 

Public Attributes

int8_t ** ptrs_
 
int64_t num_cols_
 
int64_t num_rows_
 

Detailed Description

template<typename T>
struct ColumnList< T >

Definition at line 1027 of file heavydbTypes.h.

Constructor & Destructor Documentation

template<typename T>
DEVICE ColumnList< T >::ColumnList ( int8_t **  ptrs,
const int64_t  num_cols,
const int64_t  num_rows 
)
inline

Definition at line 1032 of file heavydbTypes.h.

1033  : ptrs_(ptrs), num_cols_(num_cols), num_rows_(num_rows) {}
int64_t num_rows_
int8_t ** ptrs_
int64_t num_cols_

Member Function Documentation

template<typename T>
DEVICE Column<T> ColumnList< T >::operator[] ( const int  index) const
inline

Definition at line 1037 of file heavydbTypes.h.

References ColumnList< T >::num_cols_, ColumnList< T >::num_rows_, ColumnList< T >::ptrs_, run_benchmark_import::result, heavydb.dtypes::T, to_string(), toString(), and typeName().

1037  {
1038  if (index >= 0 && index < num_cols_)
1039  return {reinterpret_cast<T*>(ptrs_[index]), num_rows_};
1040  else
1041  return {nullptr, -1};
1042  }
int64_t num_rows_
int8_t ** ptrs_
int64_t num_cols_

+ Here is the call graph for this function:

template<typename T>
DEVICE int64_t ColumnList< T >::size ( ) const
inline

Definition at line 1035 of file heavydbTypes.h.

References ColumnList< T >::num_rows_.

Referenced by TableFunctions_Namespace::strip_column_metadata().

1035 { return num_rows_; }
int64_t num_rows_

+ Here is the caller graph for this function:

Member Data Documentation


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