OmniSciDB
a5dc49c757
|
Enumerations | |
enum | ScalingType { ScaleUp, ScaleDown } |
Functions | |
constexpr int64_t | get_timestamp_precision_scale (const int32_t dimen) |
constexpr int64_t | get_dateadd_timestamp_precision_scale (const DateaddField field) |
constexpr int64_t | get_extract_timestamp_precision_scale (const ExtractField field) |
constexpr bool | is_subsecond_extract_field (const ExtractField &field) |
constexpr bool | is_subsecond_dateadd_field (const DateaddField field) |
constexpr bool | is_subsecond_datetrunc_field (const DatetruncField field) |
const std::pair< SQLOps, int64_t > | get_dateadd_high_precision_adjusted_scale (const DateaddField field, int32_t dimen) |
const std::pair< SQLOps, int64_t > | get_extract_high_precision_adjusted_scale (const ExtractField &field, const int32_t dimen) |
const int64_t | get_datetrunc_high_precision_scale (const DatetruncField &field, const int32_t dimen) |
constexpr int64_t | get_datetime_scaled_epoch (const ScalingType direction, const int64_t epoch, const int32_t dimen) |
Enumerator | |
---|---|
ScaleUp | |
ScaleDown |
Definition at line 49 of file DateTimeUtils.h.
|
inline |
Definition at line 107 of file DateTimeUtils.h.
References daMICROSECOND, daMILLISECOND, daNANOSECOND, kDIVIDE, kMicroSecsPerSec, kMilliSecsPerSec, kMULTIPLY, and to_string().
|
inline |
Definition at line 67 of file DateTimeUtils.h.
References daMICROSECOND, daMILLISECOND, daNANOSECOND, kMicroSecsPerSec, kMilliSecsPerSec, kNanoSecsPerSec, and to_string().
|
inline |
Definition at line 169 of file DateTimeUtils.h.
References get_timestamp_precision_scale(), ScaleDown, and ScaleUp.
Referenced by Analyzer::Constant::do_cast(), and anonymous_namespace{ExpressionRange.cpp}::getDateTimePrecisionCastRange().
|
inline |
Definition at line 160 of file DateTimeUtils.h.
References anonymous_namespace{DateTimeUtils.h}::datetrunc_precision_lookup, and run_benchmark_import::result.
Referenced by DateTimeTranslator::getDateTruncConstantValue().
|
inline |
Definition at line 150 of file DateTimeUtils.h.
References anonymous_namespace{DateTimeUtils.h}::extract_precision_lookup, and run_benchmark_import::result.
Referenced by CodeGenerator::codegenExtractHighPrecisionTimestamps(), and DateTimeTranslator::getExtractFromTimeConstantValue().
|
inline |
Definition at line 81 of file DateTimeUtils.h.
References kMICROSECOND, kMicroSecsPerSec, kMILLISECOND, kMilliSecsPerSec, kNANOSECOND, kNanoSecsPerSec, and to_string().
Referenced by CodeGenerator::codegen(), and DateTimeTranslator::getExtractFromTimeConstantValue().
|
inline |
Definition at line 51 of file DateTimeUtils.h.
References kMicroSecsPerSec, kMilliSecsPerSec, kNanoSecsPerSec, and to_string().
Referenced by apply_hpt_qual(), CodeGenerator::codegenCastBetweenTimestamps(), CodeGenerator::codegenCastTimestampToDate(), CodeGenerator::codegenCastTimestampToTime(), Analyzer::Constant::do_cast(), ExtractExpr::generate(), get_datetime_scaled_epoch(), anonymous_namespace{Execute.cpp}::get_hpt_overflow_underflow_safe_scaled_values(), anonymous_namespace{ExpressionRange.cpp}::getDateTimePrecisionCastRange(), DateTimeTranslator::getDateTruncConstantValue(), getExpressionRange(), and DateTimeTranslator::getExtractFromTimeConstantValue().
|
inline |
Definition at line 99 of file DateTimeUtils.h.
References daMICROSECOND, daMILLISECOND, and daNANOSECOND.
Referenced by CodeGenerator::codegen().
|
inline |
Definition at line 103 of file DateTimeUtils.h.
References dtMICROSECOND, dtMILLISECOND, and dtNANOSECOND.
Referenced by DateTimeTranslator::getDateTruncConstantValue().
|
inline |
Definition at line 95 of file DateTimeUtils.h.
References kMICROSECOND, kMILLISECOND, and kNANOSECOND.
Referenced by CodeGenerator::codegen(), CodeGenerator::codegenExtractHighPrecisionTimestamps(), and DateTimeTranslator::getExtractFromTimeConstantValue().