OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExtensionFunctionsArray.hpp File Reference
#include <cassert>
+ Include dependency graph for ExtensionFunctionsArray.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 anonymous_namespace{ExtensionFunctionsArray.hpp}
 

Functions

template<typename T >
DEVICE ALWAYS_INLINE Array< T > anonymous_namespace{ExtensionFunctionsArray.hpp}::array_append_impl (const Array< T > &in_arr, T val)
 
DEVICE ALWAYS_INLINE Array< bool > anonymous_namespace{ExtensionFunctionsArray.hpp}::barray_append_impl (const Array< bool > &in_arr, const int8_t val)
 
template<typename T >
DEVICE ALWAYS_INLINE Array< T > anonymous_namespace{ExtensionFunctionsArray.hpp}::array_first_half_impl (const Array< T > &in_arr)
 
template<typename T >
DEVICE ALWAYS_INLINE Array< T > anonymous_namespace{ExtensionFunctionsArray.hpp}::array_second_half_impl (const Array< T > &in_arr)
 
EXTENSION_NOINLINE Array< int64_t > array_append (const Array< int64_t > &in_arr, const int64_t val)
 
EXTENSION_NOINLINE Array< int32_t > array_append__ (const Array< int32_t > &in_arr, const int32_t val)
 
EXTENSION_NOINLINE Array< int16_t > array_append__1 (const Array< int16_t > &in_arr, const int16_t val)
 
EXTENSION_NOINLINE Array< int8_t > array_append__2 (const Array< int8_t > &in_arr, const int8_t val)
 
EXTENSION_NOINLINE Array< double > array_append__3 (const Array< double > &in_arr, const double val)
 
EXTENSION_NOINLINE Array< float > array_append__4 (const Array< float > &in_arr, const float val)
 
EXTENSION_NOINLINE Array
< TextEncodingDict
tarray_append (RowFunctionManager &mgr, const Array< TextEncodingDict > &in_arr, const TextEncodingDict val)
 
EXTENSION_NOINLINE Array< bool > barray_append (const Array< bool > &in_arr, const bool val)
 
EXTENSION_NOINLINE Array< bool > array_first_half__b8 (const Array< bool > &in_arr)
 
EXTENSION_NOINLINE Array< bool > array_second_half__b8 (const Array< bool > &in_arr)
 
EXTENSION_NOINLINE Array< int8_t > array_first_half__i8 (const Array< int8_t > &in_arr)
 
EXTENSION_NOINLINE Array< int8_t > array_second_half__i8 (const Array< int8_t > &in_arr)
 
EXTENSION_NOINLINE Array< int16_t > array_first_half__i16 (const Array< int16_t > &in_arr)
 
EXTENSION_NOINLINE Array< int16_t > array_second_half__i16 (const Array< int16_t > &in_arr)
 
EXTENSION_NOINLINE Array< int32_t > array_first_half__i32 (const Array< int32_t > &in_arr)
 
EXTENSION_NOINLINE Array< int32_t > array_second_half__i32 (const Array< int32_t > &in_arr)
 
EXTENSION_NOINLINE Array< int64_t > array_first_half__i64 (const Array< int64_t > &in_arr)
 
EXTENSION_NOINLINE Array< int64_t > array_second_half__i64 (const Array< int64_t > &in_arr)
 
EXTENSION_NOINLINE Array< float > array_first_half__f32 (const Array< float > &in_arr)
 
EXTENSION_NOINLINE Array< float > array_second_half__f32 (const Array< float > &in_arr)
 
EXTENSION_NOINLINE Array< double > array_first_half__f64 (const Array< double > &in_arr)
 
EXTENSION_NOINLINE Array< double > array_second_half__f64 (const Array< double > &in_arr)
 
EXTENSION_NOINLINE Array
< TextEncodingDict
array_first_half__t32 (RowFunctionManager &mgr, const Array< TextEncodingDict > &in_arr)
 
EXTENSION_NOINLINE Array
< TextEncodingDict
array_second_half__t32 (RowFunctionManager &mgr, const Array< TextEncodingDict > &in_arr)
 
EXTENSION_NOINLINE bool array_equal__bool (const Array< bool > &in_arr, const Array< bool > &other_arr)
 
EXTENSION_NOINLINE bool array_equal__i8 (const Array< int8_t > &in_arr, const Array< int8_t > &other_arr)
 
EXTENSION_NOINLINE bool array_equal__i16 (const Array< int16_t > &in_arr, const Array< int16_t > &other_arr)
 
EXTENSION_NOINLINE bool array_equal__i32 (const Array< int32_t > &in_arr, const Array< int32_t > &other_arr)
 
EXTENSION_NOINLINE bool array_equal__i64 (const Array< int64_t > &in_arr, const Array< int64_t > &other_arr)
 
EXTENSION_NOINLINE bool array_equal__f32 (const Array< float > &in_arr, const Array< float > &other_arr)
 
EXTENSION_NOINLINE bool array_equal__f64 (const Array< double > &in_arr, const Array< double > &other_arr)
 
EXTENSION_NOINLINE bool array_equal__textdict (const Array< TextEncodingDict > &in_arr, const Array< TextEncodingDict > &other_arr)
 

Function Documentation

EXTENSION_NOINLINE Array<int64_t> array_append ( const Array< int64_t > &  in_arr,
const int64_t  val 
)

Definition at line 73 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_append_impl().

74  {
75 #ifndef __CUDACC__
76  return array_append_impl(in_arr, val);
77 #else
78  assert(false);
79  return Array<int64_t>(0, true);
80 #endif
81 }
DEVICE ALWAYS_INLINE Array< T > array_append_impl(const Array< T > &in_arr, T val)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int32_t> array_append__ ( const Array< int32_t > &  in_arr,
const int32_t  val 
)

Definition at line 83 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_append_impl().

84  {
85 #ifndef __CUDACC__
86  return array_append_impl(in_arr, val);
87 #else
88  assert(false);
89  return Array<int32_t>(0, true);
90 #endif
91 }
DEVICE ALWAYS_INLINE Array< T > array_append_impl(const Array< T > &in_arr, T val)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int16_t> array_append__1 ( const Array< int16_t > &  in_arr,
const int16_t  val 
)

Definition at line 93 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_append_impl().

94  {
95 #ifndef __CUDACC__
96  return array_append_impl(in_arr, val);
97 #else
98  assert(false);
99  return Array<int16_t>(0, true);
100 #endif
101 }
DEVICE ALWAYS_INLINE Array< T > array_append_impl(const Array< T > &in_arr, T val)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int8_t> array_append__2 ( const Array< int8_t > &  in_arr,
const int8_t  val 
)

Definition at line 103 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_append_impl().

104  {
105 #ifndef __CUDACC__
106  return array_append_impl(in_arr, val);
107 #else
108  assert(false);
109  return Array<int8_t>(0, true);
110 #endif
111 }
DEVICE ALWAYS_INLINE Array< T > array_append_impl(const Array< T > &in_arr, T val)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<double> array_append__3 ( const Array< double > &  in_arr,
const double  val 
)

Definition at line 113 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_append_impl().

114  {
115 #ifndef __CUDACC__
116  return array_append_impl(in_arr, val);
117 #else
118  assert(false);
119  return Array<double>(0, true);
120 #endif
121 }
DEVICE ALWAYS_INLINE Array< T > array_append_impl(const Array< T > &in_arr, T val)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<float> array_append__4 ( const Array< float > &  in_arr,
const float  val 
)

Definition at line 123 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_append_impl().

124  {
125 #ifndef __CUDACC__
126  return array_append_impl(in_arr, val);
127 #else
128  assert(false);
129  return Array<float>(0, true);
130 #endif
131 }
DEVICE ALWAYS_INLINE Array< T > array_append_impl(const Array< T > &in_arr, T val)

+ Here is the call graph for this function:

EXTENSION_NOINLINE bool array_equal__bool ( const Array< bool > &  in_arr,
const Array< bool > &  other_arr 
)

Definition at line 335 of file ExtensionFunctionsArray.hpp.

336  {
337  return in_arr == other_arr;
338 }
EXTENSION_NOINLINE bool array_equal__f32 ( const Array< float > &  in_arr,
const Array< float > &  other_arr 
)

Definition at line 360 of file ExtensionFunctionsArray.hpp.

361  {
362  return in_arr == other_arr;
363 }
EXTENSION_NOINLINE bool array_equal__f64 ( const Array< double > &  in_arr,
const Array< double > &  other_arr 
)

Definition at line 365 of file ExtensionFunctionsArray.hpp.

366  {
367  return in_arr == other_arr;
368 }
EXTENSION_NOINLINE bool array_equal__i16 ( const Array< int16_t > &  in_arr,
const Array< int16_t > &  other_arr 
)

Definition at line 345 of file ExtensionFunctionsArray.hpp.

346  {
347  return in_arr == other_arr;
348 }
EXTENSION_NOINLINE bool array_equal__i32 ( const Array< int32_t > &  in_arr,
const Array< int32_t > &  other_arr 
)

Definition at line 350 of file ExtensionFunctionsArray.hpp.

351  {
352  return in_arr == other_arr;
353 }
EXTENSION_NOINLINE bool array_equal__i64 ( const Array< int64_t > &  in_arr,
const Array< int64_t > &  other_arr 
)

Definition at line 355 of file ExtensionFunctionsArray.hpp.

356  {
357  return in_arr == other_arr;
358 }
EXTENSION_NOINLINE bool array_equal__i8 ( const Array< int8_t > &  in_arr,
const Array< int8_t > &  other_arr 
)

Definition at line 340 of file ExtensionFunctionsArray.hpp.

341  {
342  return in_arr == other_arr;
343 }
EXTENSION_NOINLINE bool array_equal__textdict ( const Array< TextEncodingDict > &  in_arr,
const Array< TextEncodingDict > &  other_arr 
)

Definition at line 377 of file ExtensionFunctionsArray.hpp.

378  {
379  return in_arr == other_arr;
380 }
EXTENSION_NOINLINE Array<bool> array_first_half__b8 ( const Array< bool > &  in_arr)

Definition at line 175 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_first_half_impl().

175  {
176 #ifndef __CUDACC__
177  return array_first_half_impl(in_arr);
178 #else
179  assert(false);
180  return Array<bool>(0, true);
181 #endif
182 }
DEVICE ALWAYS_INLINE Array< T > array_first_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<float> array_first_half__f32 ( const Array< float > &  in_arr)

Definition at line 265 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_first_half_impl().

265  {
266 #ifndef __CUDACC__
267  return array_first_half_impl(in_arr);
268 #else
269  assert(false);
270  return Array<float>(0, true);
271 #endif
272 }
DEVICE ALWAYS_INLINE Array< T > array_first_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<double> array_first_half__f64 ( const Array< double > &  in_arr)

Definition at line 283 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_first_half_impl().

283  {
284 #ifndef __CUDACC__
285  return array_first_half_impl(in_arr);
286 #else
287  assert(false);
288  return Array<double>(0, true);
289 #endif
290 }
DEVICE ALWAYS_INLINE Array< T > array_first_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int16_t> array_first_half__i16 ( const Array< int16_t > &  in_arr)

Definition at line 211 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_first_half_impl().

211  {
212 #ifndef __CUDACC__
213  return array_first_half_impl(in_arr);
214 #else
215  assert(false);
216  return Array<int16_t>(0, true);
217 #endif
218 }
DEVICE ALWAYS_INLINE Array< T > array_first_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int32_t> array_first_half__i32 ( const Array< int32_t > &  in_arr)

Definition at line 229 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_first_half_impl().

229  {
230 #ifndef __CUDACC__
231  return array_first_half_impl(in_arr);
232 #else
233  assert(false);
234  return Array<int32_t>(0, true);
235 #endif
236 }
DEVICE ALWAYS_INLINE Array< T > array_first_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int64_t> array_first_half__i64 ( const Array< int64_t > &  in_arr)

Definition at line 247 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_first_half_impl().

247  {
248 #ifndef __CUDACC__
249  return array_first_half_impl(in_arr);
250 #else
251  assert(false);
252  return Array<int64_t>(0, true);
253 #endif
254 }
DEVICE ALWAYS_INLINE Array< T > array_first_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int8_t> array_first_half__i8 ( const Array< int8_t > &  in_arr)

Definition at line 193 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_first_half_impl().

193  {
194 #ifndef __CUDACC__
195  return array_first_half_impl(in_arr);
196 #else
197  assert(false);
198  return Array<int8_t>(0, true);
199 #endif
200 }
DEVICE ALWAYS_INLINE Array< T > array_first_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<TextEncodingDict> array_first_half__t32 ( RowFunctionManager mgr,
const Array< TextEncodingDict > &  in_arr 
)

Definition at line 307 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_first_half_impl(), GET_DICT_DB_ID, GET_DICT_ID, RowFunctionManager::getOrAddTransient(), RowFunctionManager::getString(), Array< T >::isNull(), Array< T >::size(), TRANSIENT_DICT_DB_ID, and TRANSIENT_DICT_ID.

308  {
310  for (size_t i = 0; i < out_arr.size(); i++) {
311  if (!out_arr.isNull(i)) {
312  std::string str =
313  mgr.getString(GET_DICT_DB_ID(mgr, 0), GET_DICT_ID(mgr, 0), out_arr[i]);
315  }
316  }
317  return out_arr;
318 }
#define TRANSIENT_DICT_DB_ID
Definition: DbObjectKeys.h:25
#define TRANSIENT_DICT_ID
Definition: DbObjectKeys.h:24
#define GET_DICT_ID(mgr, arg_idx)
Definition: heavydbTypes.h:141
#define GET_DICT_DB_ID(mgr, arg_idx)
Definition: heavydbTypes.h:139
int32_t getOrAddTransient(int32_t db_id, int32_t dict_id, std::string str)
Definition: heavydbTypes.h:314
DEVICE ALWAYS_INLINE size_t size() const
Definition: heavydbTypes.h:520
std::string getString(int32_t db_id, int32_t dict_id, int32_t string_id)
Definition: heavydbTypes.h:299
DEVICE ALWAYS_INLINE Array< T > array_first_half_impl(const Array< T > &in_arr)
DEVICE bool isNull() const
Definition: heavydbTypes.h:556

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<bool> array_second_half__b8 ( const Array< bool > &  in_arr)

Definition at line 184 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_second_half_impl().

184  {
185 #ifndef __CUDACC__
186  return array_second_half_impl(in_arr);
187 #else
188  assert(false);
189  return Array<bool>(0, true);
190 #endif
191 }
DEVICE ALWAYS_INLINE Array< T > array_second_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<float> array_second_half__f32 ( const Array< float > &  in_arr)

Definition at line 274 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_second_half_impl().

274  {
275 #ifndef __CUDACC__
276  return array_second_half_impl(in_arr);
277 #else
278  assert(false);
279  return Array<float>(0, true);
280 #endif
281 }
DEVICE ALWAYS_INLINE Array< T > array_second_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<double> array_second_half__f64 ( const Array< double > &  in_arr)

Definition at line 292 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_second_half_impl().

292  {
293 #ifndef __CUDACC__
294  return array_second_half_impl(in_arr);
295 #else
296  assert(false);
297  return Array<double>(0, true);
298 #endif
299 }
DEVICE ALWAYS_INLINE Array< T > array_second_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int16_t> array_second_half__i16 ( const Array< int16_t > &  in_arr)

Definition at line 220 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_second_half_impl().

220  {
221 #ifndef __CUDACC__
222  return array_second_half_impl(in_arr);
223 #else
224  assert(false);
225  return Array<int16_t>(0, true);
226 #endif
227 }
DEVICE ALWAYS_INLINE Array< T > array_second_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int32_t> array_second_half__i32 ( const Array< int32_t > &  in_arr)

Definition at line 238 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_second_half_impl().

238  {
239 #ifndef __CUDACC__
240  return array_second_half_impl(in_arr);
241 #else
242  assert(false);
243  return Array<int32_t>(0, true);
244 #endif
245 }
DEVICE ALWAYS_INLINE Array< T > array_second_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int64_t> array_second_half__i64 ( const Array< int64_t > &  in_arr)

Definition at line 256 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_second_half_impl().

256  {
257 #ifndef __CUDACC__
258  return array_second_half_impl(in_arr);
259 #else
260  assert(false);
261  return Array<int64_t>(0, true);
262 #endif
263 }
DEVICE ALWAYS_INLINE Array< T > array_second_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<int8_t> array_second_half__i8 ( const Array< int8_t > &  in_arr)

Definition at line 202 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_second_half_impl().

202  {
203 #ifndef __CUDACC__
204  return array_second_half_impl(in_arr);
205 #else
206  assert(false);
207  return Array<int8_t>(0, true);
208 #endif
209 }
DEVICE ALWAYS_INLINE Array< T > array_second_half_impl(const Array< T > &in_arr)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<TextEncodingDict> array_second_half__t32 ( RowFunctionManager mgr,
const Array< TextEncodingDict > &  in_arr 
)

Definition at line 321 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::array_second_half_impl(), GET_DICT_DB_ID, GET_DICT_ID, RowFunctionManager::getOrAddTransient(), RowFunctionManager::getString(), Array< T >::isNull(), Array< T >::size(), TRANSIENT_DICT_DB_ID, and TRANSIENT_DICT_ID.

322  {
324  for (size_t i = 0; i < out_arr.size(); i++) {
325  if (!out_arr.isNull(i)) {
326  std::string str =
327  mgr.getString(GET_DICT_DB_ID(mgr, 0), GET_DICT_ID(mgr, 0), out_arr[i]);
329  }
330  }
331  return out_arr;
332 }
#define TRANSIENT_DICT_DB_ID
Definition: DbObjectKeys.h:25
DEVICE ALWAYS_INLINE Array< T > array_second_half_impl(const Array< T > &in_arr)
#define TRANSIENT_DICT_ID
Definition: DbObjectKeys.h:24
#define GET_DICT_ID(mgr, arg_idx)
Definition: heavydbTypes.h:141
#define GET_DICT_DB_ID(mgr, arg_idx)
Definition: heavydbTypes.h:139
int32_t getOrAddTransient(int32_t db_id, int32_t dict_id, std::string str)
Definition: heavydbTypes.h:314
DEVICE ALWAYS_INLINE size_t size() const
Definition: heavydbTypes.h:520
std::string getString(int32_t db_id, int32_t dict_id, int32_t string_id)
Definition: heavydbTypes.h:299
DEVICE bool isNull() const
Definition: heavydbTypes.h:556

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<bool> barray_append ( const Array< bool > &  in_arr,
const bool  val 
)

Definition at line 164 of file ExtensionFunctionsArray.hpp.

References anonymous_namespace{ExtensionFunctionsArray.hpp}::barray_append_impl().

164  {
165 #ifndef __CUDACC__
166  // we need to cast 'val' to int8_t type to represent null sentinel correctly
167  // i.e., NULL_BOOLEAN = -128
168  return barray_append_impl(in_arr, val);
169 #else
170  assert(false);
171  return Array<bool>(0, true);
172 #endif
173 }
DEVICE ALWAYS_INLINE Array< bool > barray_append_impl(const Array< bool > &in_arr, const int8_t val)

+ Here is the call graph for this function:

EXTENSION_NOINLINE Array<TextEncodingDict> tarray_append ( RowFunctionManager mgr,
const Array< TextEncodingDict > &  in_arr,
const TextEncodingDict  val 
)

Definition at line 134 of file ExtensionFunctionsArray.hpp.

References GET_DICT_DB_ID, GET_DICT_ID, RowFunctionManager::getOrAddTransient(), RowFunctionManager::getString(), TextEncodingDict::isNull(), Array< T >::isNull(), Array< T >::size(), TRANSIENT_DICT_DB_ID, and TRANSIENT_DICT_ID.

137  {
138  Array<TextEncodingDict> out_arr(in_arr.size() + 1);
139  for (size_t i = 0; i < in_arr.size(); i++) {
140  if (in_arr.isNull(i)) {
141  out_arr[i] = in_arr[i];
142  } else {
143  std::string str =
144  mgr.getString(GET_DICT_DB_ID(mgr, 0), GET_DICT_ID(mgr, 0), in_arr[i]);
146  }
147  }
148  if (val.isNull()) {
149  out_arr[in_arr.size()] = val;
150  } else {
151  std::string str = mgr.getString(GET_DICT_DB_ID(mgr, 1), GET_DICT_ID(mgr, 1), val);
152  out_arr[in_arr.size()] =
154  }
155  return out_arr;
156 }
#define TRANSIENT_DICT_DB_ID
Definition: DbObjectKeys.h:25
#define TRANSIENT_DICT_ID
Definition: DbObjectKeys.h:24
#define GET_DICT_ID(mgr, arg_idx)
Definition: heavydbTypes.h:141
DEVICE ALWAYS_INLINE bool isNull() const
Definition: heavydbTypes.h:232
#define GET_DICT_DB_ID(mgr, arg_idx)
Definition: heavydbTypes.h:139
int32_t getOrAddTransient(int32_t db_id, int32_t dict_id, std::string str)
Definition: heavydbTypes.h:314
DEVICE ALWAYS_INLINE size_t size() const
Definition: heavydbTypes.h:520
std::string getString(int32_t db_id, int32_t dict_id, int32_t string_id)
Definition: heavydbTypes.h:299
DEVICE bool isNull() const
Definition: heavydbTypes.h:556

+ Here is the call graph for this function: