OmniSciDB
a5dc49c757
|
#include <string>
#include "Shared/ThreadInfo.h"
#include "UtilityTableFunctions.h"
#include <chrono>
#include <random>
#include <thread>
Go to the source code of this file.
Functions | |
int64_t | numStepsBetween (int64_t start, int64_t stop, int64_t step) |
template<typename T > | |
int64_t | numStepsBetween (Timestamp start, Timestamp stop, T step) |
template<typename T , typename K > | |
int32_t | generate_series_parallel (const T start, const T stop, const K step, Column< T > &series_output) |
template<typename T , typename K > | |
NEVER_INLINE HOST int32_t | generate_series__cpu_template (TableFunctionManager &mgr, const T start, const T stop, const K step, Column< T > &series_output) |
template<typename T > | |
NEVER_INLINE HOST int32_t | generate_series__cpu_template (TableFunctionManager &mgr, const T start, const T stop, Column< T > &series_output) |
HOST std::string | gen_random_str (std::mt19937 &generator, const int64_t str_len) |
EXTENSION_NOINLINE_HOST int32_t | generate_random_strings__cpu_ (TableFunctionManager &mgr, const int64_t num_strings, const int64_t string_length, Column< int64_t > &output_id, Column< TextEncodingDict > &output_strings) |
template int64_t | numStepsBetween (Timestamp, Timestamp, DayTimeInterval) |
template int64_t | numStepsBetween (Timestamp, Timestamp, YearMonthTimeInterval) |
template int32_t | generate_series_parallel (int64_t, int64_t, int64_t, Column< int64_t > &) |
template int32_t | generate_series_parallel (Timestamp, Timestamp, DayTimeInterval, Column< Timestamp > &) |
template int32_t | generate_series_parallel (Timestamp, Timestamp, YearMonthTimeInterval, Column< Timestamp > &) |
template int32_t | generate_series__cpu_template (TableFunctionManager &, int64_t, int64_t, int64_t, Column< int64_t > &) |
template int32_t | generate_series__cpu_template (TableFunctionManager &, Timestamp, Timestamp, DayTimeInterval, Column< Timestamp > &) |
template int32_t | generate_series__cpu_template (TableFunctionManager &, Timestamp, Timestamp, YearMonthTimeInterval, Column< Timestamp > &) |
template int32_t | generate_series__cpu_template (TableFunctionManager &, int64_t, int64_t, Column< int64_t > &) |
HOST std::string gen_random_str | ( | std::mt19937 & | generator, |
const int64_t | str_len | ||
) |
Definition at line 99 of file UtilityTableFunctions.cpp.
Referenced by generate_random_strings__cpu_().
EXTENSION_NOINLINE_HOST int32_t generate_random_strings__cpu_ | ( | TableFunctionManager & | mgr, |
const int64_t | num_strings, | ||
const int64_t | string_length, | ||
Column< int64_t > & | output_id, | ||
Column< TextEncodingDict > & | output_strings | ||
) |
Definition at line 121 of file UtilityTableFunctions.cpp.
References CHECK_LE, DEBUG_TIMER, gen_random_str(), ThreadInfo::num_elems_per_thread, ThreadInfo::num_threads, threading_serial::parallel_for(), and TableFunctionManager::set_output_row_size().
NEVER_INLINE HOST int32_t generate_series__cpu_template | ( | TableFunctionManager & | mgr, |
const T | start, | ||
const T | stop, | ||
const K | step, | ||
Column< T > & | series_output | ||
) |
Definition at line 58 of file UtilityTableFunctions.cpp.
References generate_series_parallel(), numStepsBetween(), TableFunctionManager::set_output_row_size(), and SUCCESS.
Referenced by generate_series__cpu_template().
NEVER_INLINE HOST int32_t generate_series__cpu_template | ( | TableFunctionManager & | mgr, |
const T | start, | ||
const T | stop, | ||
Column< T > & | series_output | ||
) |
Definition at line 87 of file UtilityTableFunctions.cpp.
References generate_series__cpu_template().
template int32_t generate_series__cpu_template | ( | TableFunctionManager & | , |
int64_t | , | ||
int64_t | , | ||
int64_t | , | ||
Column< int64_t > & | |||
) |
template int32_t generate_series__cpu_template | ( | TableFunctionManager & | , |
Timestamp | , | ||
Timestamp | , | ||
DayTimeInterval | , | ||
Column< Timestamp > & | |||
) |
template int32_t generate_series__cpu_template | ( | TableFunctionManager & | , |
Timestamp | , | ||
Timestamp | , | ||
YearMonthTimeInterval | , | ||
Column< Timestamp > & | |||
) |
template int32_t generate_series__cpu_template | ( | TableFunctionManager & | , |
int64_t | , | ||
int64_t | , | ||
Column< int64_t > & | |||
) |
int32_t generate_series_parallel | ( | const T | start, |
const T | stop, | ||
const K | step, | ||
Column< T > & | series_output | ||
) |
Definition at line 39 of file UtilityTableFunctions.cpp.
References numStepsBetween(), threading_serial::parallel_for(), and SUCCESS.
Referenced by generate_series__cpu_template().
template int32_t generate_series_parallel | ( | int64_t | , |
int64_t | , | ||
int64_t | , | ||
Column< int64_t > & | |||
) |
template int32_t generate_series_parallel | ( | Timestamp | , |
Timestamp | , | ||
DayTimeInterval | , | ||
Column< Timestamp > & | |||
) |
template int32_t generate_series_parallel | ( | Timestamp | , |
Timestamp | , | ||
YearMonthTimeInterval | , | ||
Column< Timestamp > & | |||
) |
int64_t numStepsBetween | ( | int64_t | start, |
int64_t | stop, | ||
int64_t | step | ||
) |
Definition at line 29 of file UtilityTableFunctions.cpp.
Referenced by generate_series__cpu_template(), and generate_series_parallel().
Definition at line 34 of file UtilityTableFunctions.cpp.
template int64_t numStepsBetween | ( | Timestamp | , |
Timestamp | , | ||
DayTimeInterval | |||
) |
template int64_t numStepsBetween | ( | Timestamp | , |
Timestamp | , | ||
YearMonthTimeInterval | |||
) |