OmniSciDB  c0231cc57d
 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 919 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 926 of file heavydbTypes.h.

930  : ptrs_(ptrs)
931  , num_cols_(num_cols)
932  , num_rows_(num_rows)
933  , string_dict_proxies_(string_dict_proxies) {}
StringDictionaryProxy ** string_dict_proxies_
Definition: heavydbTypes.h:925

Member Function Documentation

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

Definition at line 944 of file heavydbTypes.h.

References ColumnList< T >::num_cols_.

Referenced by ct_binding_str_equals__cpu_(), and ct_string_concat__cpu_().

944 { return num_cols_; }

+ Here is the caller graph for this function:

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

Definition at line 945 of file heavydbTypes.h.

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

945  {
946  if (index >= 0 && index < num_cols_) {
947  Column<TextEncodingDict> result(reinterpret_cast<TextEncodingDict*>(ptrs_[index]),
948  num_rows_
949 #ifndef __CUDACC__
950 #ifndef UDF_COMPILED
951  ,
952  string_dict_proxies_[index]
953 #endif // #ifndef UDF_COMPILED
954 #endif // #ifndef __CUDACC__
955  );
956  return result;
957  } else {
959  -1
960 #ifndef __CUDACC__
961 #ifndef UDF_COMPILED
962  ,
963  nullptr
964 #endif // #ifndef UDF_COMPILED
965 #endif // #ifndef__CUDACC__
966  );
967  return result;
968  }
969  }
StringDictionaryProxy ** string_dict_proxies_
Definition: heavydbTypes.h:925
DEVICE int64_t ColumnList< TextEncodingDict >::size ( ) const
inline

Definition at line 943 of file heavydbTypes.h.

References ColumnList< T >::num_rows_.

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_().

943 { return num_rows_; }

+ Here is the caller graph for this function:

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

Definition at line 973 of file heavydbTypes.h.

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

973  {
974  std::string result = ::typeName(this) + "(ptrs=[";
975  for (int64_t index = 0; index < num_cols_; index++) {
976  result += ::toString(reinterpret_cast<void*>(ptrs_[index])) +
977  (index < num_cols_ - 1 ? ", " : "");
978  }
979  result += "], num_cols=" + std::to_string(num_cols_) +
980  ", num_rows=" + std::to_string(num_rows_) + ")";
981  return result;
982  }
std::string toString() const
Definition: heavydbTypes.h:973
std::string to_string(char const *&&v)
std::string typeName(const T *v)
Definition: toString.h:103

+ Here is the call graph for this function:

Member Data Documentation

int64_t ColumnList< TextEncodingDict >::num_cols_

Definition at line 921 of file heavydbTypes.h.

int64_t ColumnList< TextEncodingDict >::num_rows_

Definition at line 922 of file heavydbTypes.h.

int8_t** ColumnList< TextEncodingDict >::ptrs_

Definition at line 920 of file heavydbTypes.h.

Definition at line 925 of file heavydbTypes.h.


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