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

#include <heavydbTypes.h>

Public Member Functions

DEVICE int64_t size () const
 
DEVICE int64_t numCols () const
 
DEVICE Column< Array< 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< Array< T > >

Definition at line 1061 of file heavydbTypes.h.

Member Function Documentation

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

Definition at line 1067 of file heavydbTypes.h.

References ColumnList< T >::num_cols_.

1067 { return num_cols_; }
template<typename T >
DEVICE Column<Array<T> > ColumnList< Array< T > >::operator[] ( const int  index) const
inline

Definition at line 1068 of file heavydbTypes.h.

References ColumnList< T >::num_cols_, ColumnList< T >::num_rows_, ColumnList< T >::ptrs_, and run_benchmark_import::result.

1068  {
1069  int8_t* ptr = ((index >= 0 && index < num_cols_) ? ptrs_[index] : nullptr);
1070  int64_t num_rows = ((index >= 0 && index < num_cols_) ? num_rows_ : -1);
1071  Column<Array<T>> result(ptr, num_rows);
1072  return result;
1073  }
template<typename T >
DEVICE int64_t ColumnList< Array< T > >::size ( ) const
inline

Definition at line 1066 of file heavydbTypes.h.

References ColumnList< T >::num_rows_.

1066 { return num_rows_; }

Member Data Documentation

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

Definition at line 1063 of file heavydbTypes.h.

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

Definition at line 1064 of file heavydbTypes.h.

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

Definition at line 1062 of file heavydbTypes.h.


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