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

#include <heavydbTypes.h>

+ Collaboration diagram for ColumnList< TextEncodingDict >:

Public Member Functions

DEVICE ColumnList (int8_t **ptrs, const int64_t num_cols, const int64_t num_rows, StringDictionaryProxy **string_dict_proxies)
 
DEVICE int64_t size () const
 
DEVICE int64_t numCols () const
 
DEVICE Column< TextEncodingDictoperator[] (const int index) const
 
std::string toString () const
 

Public Attributes

int8_t ** ptrs_
 
int64_t num_cols_
 
int64_t num_rows_
 
StringDictionaryProxy ** string_dict_proxies_
 

Detailed Description

template<>
struct ColumnList< TextEncodingDict >

Definition at line 2549 of file heavydbTypes.h.

Constructor & Destructor Documentation

DEVICE ColumnList< TextEncodingDict >::ColumnList ( int8_t **  ptrs,
const int64_t  num_cols,
const int64_t  num_rows,
StringDictionaryProxy **  string_dict_proxies 
)
inline

Definition at line 2556 of file heavydbTypes.h.

2560  : ptrs_(ptrs)
2561  , num_cols_(num_cols)
2562  , num_rows_(num_rows)
2563  , string_dict_proxies_(string_dict_proxies) {}
StringDictionaryProxy ** string_dict_proxies_

Member Function Documentation

DEVICE int64_t ColumnList< TextEncodingDict >::numCols ( ) const
inline

Definition at line 2576 of file heavydbTypes.h.

Referenced by CategoricalFeaturesBuilder< T >::CategoricalFeaturesBuilder(), ct_binding_str_equals__cpu_(), ct_string_concat__cpu_(), ml_reg_predict__cpu_template(), TableFunctions_Namespace::OneHotEncoder_Namespace::one_hot_encode(), and r2_score__cpu_template().

2576  {
2577  return num_cols_;
2578  }

+ Here is the caller graph for this function:

DEVICE Column<TextEncodingDict> ColumnList< TextEncodingDict >::operator[] ( const int  index) const
inline

Definition at line 2579 of file heavydbTypes.h.

References run_benchmark_import::result.

2579  {
2580  if (index >= 0 && index < num_cols_) {
2581  Column<TextEncodingDict> result(reinterpret_cast<TextEncodingDict*>(ptrs_[index]),
2582  num_rows_
2583 #ifndef __CUDACC__
2584 #ifndef UDF_COMPILED
2585  ,
2586  string_dict_proxies_[index]
2587 #endif // #ifndef UDF_COMPILED
2588 #endif // #ifndef __CUDACC__
2589  );
2590  return result;
2591  } else {
2593  -1
2594 #ifndef __CUDACC__
2595 #ifndef UDF_COMPILED
2596  ,
2597  nullptr
2598 #endif // #ifndef UDF_COMPILED
2599 #endif // #ifndef__CUDACC__
2600  );
2601  return result;
2602  }
2603  }
StringDictionaryProxy ** string_dict_proxies_
DEVICE int64_t ColumnList< TextEncodingDict >::size ( ) const
inline

Definition at line 2573 of file heavydbTypes.h.

Referenced by ct_binding_dict_encoded4__cpu_1(), ct_binding_dict_encoded5__cpu_1(), ct_binding_dict_encoded6__cpu_1(), ct_binding_str_equals__cpu_(), and ct_string_concat__cpu_().

2573  {
2574  return num_rows_;
2575  }

+ Here is the caller graph for this function:

std::string ColumnList< TextEncodingDict >::toString ( ) const
inline

Definition at line 2607 of file heavydbTypes.h.

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

2607  {
2608  std::string result = ::typeName(this) + "(ptrs=[";
2609  for (int64_t index = 0; index < num_cols_; index++) {
2610  result += ::toString(reinterpret_cast<void*>(ptrs_[index])) +
2611  (index < num_cols_ - 1 ? ", " : "");
2612  }
2613  result += "], num_cols=" + std::to_string(num_cols_) +
2614  ", num_rows=" + std::to_string(num_rows_) + ")";
2615  return result;
2616  }
std::string toString() const
std::string to_string(char const *&&v)
std::string typeName(const T *v)
Definition: toString.h:106

+ Here is the call graph for this function:

Member Data Documentation

int64_t ColumnList< TextEncodingDict >::num_cols_

Definition at line 2551 of file heavydbTypes.h.


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