OmniSciDB
a5dc49c757
|
#include <DateTimeTranslator.h>
Static Public Member Functions | |
static int64_t | getExtractFromTimeConstantValue (const int64_t &timeval, const ExtractField &field, const SQLTypeInfo &ti) |
static int64_t | getDateTruncConstantValue (const int64_t &timeval, const DatetruncField &field, const SQLTypeInfo &ti) |
Static Protected Member Functions | |
static std::shared_ptr < Analyzer::Constant > | getNumericConstant (const int64_t scale) |
Definition at line 29 of file DateTimeTranslator.h.
|
inlinestatic |
Definition at line 54 of file DateTimeTranslator.h.
References DateTruncate(), floor_div(), DateTimeUtils::get_datetrunc_high_precision_scale(), SQLTypeInfo::get_dimension(), DateTimeUtils::get_timestamp_precision_scale(), SQLTypeInfo::is_high_precision_timestamp(), DateTimeUtils::is_subsecond_datetrunc_field(), run_benchmark_import::result, and unsigned_mod().
Referenced by DateTruncExpr::generate(), and getExpressionRange().
|
inlinestatic |
Definition at line 31 of file DateTimeTranslator.h.
References ExtractFromTime(), floor_div(), SQLTypeInfo::get_dimension(), DateTimeUtils::get_extract_high_precision_adjusted_scale(), DateTimeUtils::get_extract_timestamp_precision_scale(), DateTimeUtils::get_timestamp_precision_scale(), SQLTypeInfo::is_high_precision_timestamp(), DateTimeUtils::is_subsecond_extract_field(), kDIVIDE, and run_benchmark_import::result.
Referenced by ExtractExpr::generate().
|
inlinestaticprotected |
Definition at line 74 of file DateTimeTranslator.h.
References Datum::bigintval, and kBIGINT.