OmniSciDB
a5dc49c757
|
Go to the source code of this file.
Namespaces | |
anonymous_namespace{ExtractFromTime.cpp} | |
Variables | |
constexpr unsigned | anonymous_namespace{ExtractFromTime.cpp}::MONDAY = 2 |
constexpr unsigned | anonymous_namespace{ExtractFromTime.cpp}::SUNDAY = 3 |
constexpr unsigned | anonymous_namespace{ExtractFromTime.cpp}::SATURDAY = 4 |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_dateepoch | ( | const int64_t | timeval | ) |
Definition at line 188 of file ExtractFromTime.cpp.
References kSecsPerDay, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_day | ( | const int64_t | timeval | ) |
Definition at line 200 of file ExtractFromTime.cpp.
References floor_div(), kDaysPer400Years, kEpochAdjustedDays, kSecsPerDay, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_day_of_year | ( | const int64_t | timeval | ) |
Definition at line 210 of file ExtractFromTime.cpp.
References floor_div(), JANMAR, kDaysPer400Years, kEpochAdjustedDays, kSecsPerDay, MARJAN, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_dow | ( | const int64_t | lcltime | ) |
Definition at line 107 of file ExtractFromTime.cpp.
References floor_div(), kDaysPerWeek, kSecsPerDay, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_epoch | ( | const int64_t | timeval | ) |
Definition at line 183 of file ExtractFromTime.cpp.
Referenced by ExtractFromTime().
ALWAYS_INLINE DEVICE int64_t extract_hour | ( | const int64_t | lcltime | ) |
Definition at line 76 of file ExtractFromTime.cpp.
References kSecsPerDay, kSecsPerHour, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_isodow | ( | const int64_t | timeval | ) |
Definition at line 194 of file ExtractFromTime.cpp.
References floor_div(), kDaysPerWeek, kSecsPerDay, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_microsecond | ( | const int64_t | lcltime | ) |
Definition at line 96 of file ExtractFromTime.cpp.
References kMicroSecsPerSec, kSecsPerMin, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_millisecond | ( | const int64_t | lcltime | ) |
Definition at line 91 of file ExtractFromTime.cpp.
References kMilliSecsPerSec, kSecsPerMin, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_minute | ( | const int64_t | lcltime | ) |
Definition at line 81 of file ExtractFromTime.cpp.
References kSecsPerHour, kSecsPerMin, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_month | ( | const int64_t | timeval | ) |
Definition at line 252 of file ExtractFromTime.cpp.
References extract_month_fast(), floor_div(), kDaysPer400Years, kEpochAdjustedDays, kEpochOffsetYear1900, kSecsPerDay, and unsigned_mod().
Referenced by ExtractFromTime().
DEVICE int32_t extract_month_fast | ( | const int64_t | lcltime | ) |
Definition at line 117 of file ExtractFromTime.cpp.
References kEpochOffsetYear1900, kMonsPerYear, kSecondsPer4YearCycle, kSecondsPerNonLeapYear, kSecsJanToMar1900, kUSecsPerDay, and STATIC_QUAL.
Referenced by extract_month().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_nanosecond | ( | const int64_t | lcltime | ) |
Definition at line 101 of file ExtractFromTime.cpp.
References kNanoSecsPerSec, kSecsPerMin, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_quarter | ( | const int64_t | timeval | ) |
Definition at line 265 of file ExtractFromTime.cpp.
References extract_quarter_fast(), floor_div(), kDaysPer400Years, kEpochAdjustedDays, kEpochOffsetYear1900, kSecsPerDay, and unsigned_mod().
Referenced by ExtractFromTime().
DEVICE int32_t extract_quarter_fast | ( | const int64_t | lcltime | ) |
Definition at line 150 of file ExtractFromTime.cpp.
References kEpochOffsetYear1900, kSecondsPer4YearCycle, kSecondsPerNonLeapYear, kSecsJanToMar1900, kSecsPerDay, kUSecsPerDay, and STATIC_QUAL.
Referenced by extract_quarter().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_quarterday | ( | const int64_t | lcltime | ) |
Definition at line 113 of file ExtractFromTime.cpp.
References kSecsPerDay, kSecsPerQuarterDay, and unsigned_mod().
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_second | ( | const int64_t | lcltime | ) |
Definition at line 86 of file ExtractFromTime.cpp.
References kSecsPerMin, and unsigned_mod().
Referenced by ExtractFromTime().
ALWAYS_INLINE DEVICE int64_t extract_week | ( | const int64_t | timeval | ) |
Definition at line 220 of file ExtractFromTime.cpp.
References floor_div(), kDaysPer400Years, kEpochAdjustedDays, kSecsPerDay, and unsigned_mod().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_week_monday | ( | const int64_t | timeval | ) |
Definition at line 237 of file ExtractFromTime.cpp.
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_week_saturday | ( | const int64_t | timeval | ) |
Definition at line 247 of file ExtractFromTime.cpp.
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_week_sunday | ( | const int64_t | timeval | ) |
Definition at line 242 of file ExtractFromTime.cpp.
Referenced by ExtractFromTime().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int64_t extract_year | ( | const int64_t | timeval | ) |
Definition at line 279 of file ExtractFromTime.cpp.
References extract_year_fast(), floor_div(), kDaysPer400Years, kEpochAdjustedDays, kEpochOffsetYear1900, kSecsPerDay, and MARJAN.
Referenced by ExtractFromTime().
DEVICE int32_t extract_year_fast | ( | const int64_t | lcltime | ) |
Definition at line 174 of file ExtractFromTime.cpp.
References kEpochOffsetYear1900, kSecondsPer4YearCycle, kSecondsPerNonLeapYear, kSecsJanToMar1900, and kUSecsPerDay.
Referenced by extract_year().
DEVICE int64_t ExtractFromTime | ( | ExtractField | field, |
const int64_t | timeval | ||
) |
Definition at line 294 of file ExtractFromTime.cpp.
References extract_dateepoch(), extract_day(), extract_day_of_year(), extract_dow(), extract_epoch(), extract_hour(), extract_isodow(), extract_microsecond(), extract_millisecond(), extract_minute(), extract_month(), extract_nanosecond(), extract_quarter(), extract_quarterday(), extract_second(), extract_week_monday(), extract_week_saturday(), extract_week_sunday(), extract_year(), kDATEEPOCH, kDAY, kDOW, kDOY, kEPOCH, kHOUR, kISODOW, kMICROSECOND, kMILLISECOND, kMINUTE, kMONTH, kNANOSECOND, kQUARTER, kQUARTERDAY, kSECOND, kUNKNOWN_FIELD, kWEEK, kWEEK_SATURDAY, kWEEK_SUNDAY, and kYEAR.
Referenced by Timestamp::getDay(), getExpressionRange(), DateTimeTranslator::getExtractFromTimeConstantValue(), Timestamp::getHours(), Timestamp::getMicroseconds(), Timestamp::getMilliseconds(), Timestamp::getMinutes(), Timestamp::getMonth(), Timestamp::getNanoseconds(), Timestamp::getSeconds(), and Timestamp::getYear().
ALWAYS_INLINE DEVICE int64_t ExtractTimeFromHPTimestamp | ( | const int64_t | timeval, |
const int64_t | scale | ||
) |
Definition at line 48 of file ExtractFromTime.cpp.
References floor_div(), kSecsPerDay, and unsigned_mod().
Referenced by ExtractTimeFromHPTimestampNullable().
ALWAYS_INLINE DEVICE int64_t ExtractTimeFromHPTimestampNullable | ( | const int64_t | timeval, |
const int64_t | scale, | ||
const int64_t | null_val | ||
) |
Definition at line 54 of file ExtractFromTime.cpp.
References ExtractTimeFromHPTimestamp().
ALWAYS_INLINE DEVICE int64_t ExtractTimeFromLPTimestamp | ( | const int64_t | timeval | ) |
Definition at line 64 of file ExtractFromTime.cpp.
References kSecsPerDay, and unsigned_mod().
Referenced by ExtractTimeFromLPTimestampNullable().
ALWAYS_INLINE DEVICE int64_t ExtractTimeFromLPTimestampNullable | ( | const int64_t | timeval, |
const int64_t | null_val | ||
) |
Definition at line 69 of file ExtractFromTime.cpp.
References ExtractTimeFromLPTimestamp().