OmniSciDB  72c90bc290
 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
 
std::string toString () 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 2484 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 2489 of file heavydbTypes.h.

2490  : 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 2494 of file heavydbTypes.h.

References heavydb.dtypes::T.

2494  {
2495  if (index >= 0 && index < num_cols_)
2496  return {reinterpret_cast<T*>(ptrs_[index]), num_rows_};
2497  else
2498  return {nullptr, -1};
2499  }
int64_t num_rows_
int8_t ** ptrs_
int64_t num_cols_
template<typename T>
DEVICE int64_t ColumnList< T >::size ( ) const
inline

Definition at line 2492 of file heavydbTypes.h.

Referenced by make_features_from_columns(), pca_fit_impl(), row_copier_columnlist__cpu__(), and TableFunctions_Namespace::strip_column_metadata().

2492 { return num_rows_; }
int64_t num_rows_

+ Here is the caller graph for this function:

template<typename T>
std::string ColumnList< T >::toString ( ) const
inline

Definition at line 2503 of file heavydbTypes.h.

References run_benchmark_import::result, to_string(), toString(), and typeName().

2503  {
2504  std::string result = ::typeName(this) + "(ptrs=[";
2505  for (int64_t index = 0; index < num_cols_; index++) {
2506  result += ::toString(reinterpret_cast<void*>(ptrs_[index])) +
2507  (index < num_cols_ - 1 ? ", " : "");
2508  }
2509  result += "], num_cols=" + std::to_string(num_cols_) +
2510  ", num_rows=" + std::to_string(num_rows_) + ")";
2511  return result;
2512  }
int64_t num_rows_
std::string to_string(char const *&&v)
std::string toString() const
int8_t ** ptrs_
int64_t num_cols_
std::string typeName(const T *v)
Definition: toString.h:106

+ Here is the call graph for this function:

Member Data Documentation

template<typename T>
int64_t ColumnList< T >::num_cols_

Definition at line 2486 of file heavydbTypes.h.

template<typename T>
int64_t ColumnList< T >::num_rows_

Definition at line 2487 of file heavydbTypes.h.

template<typename T>
int8_t** ColumnList< T >::ptrs_

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