libcudf
24.04.00
|
Files | |
file | datetime.hpp |
DateTime column APIs. | |
Functions | |
std::unique_ptr< cudf::column > | cudf::datetime::extract_year (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Extracts year from any datetime type and returns an int16_t cudf::column. More... | |
std::unique_ptr< cudf::column > | cudf::datetime::extract_month (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Extracts month from any datetime type and returns an int16_t cudf::column. More... | |
std::unique_ptr< cudf::column > | cudf::datetime::extract_day (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Extracts day from any datetime type and returns an int16_t cudf::column. More... | |
std::unique_ptr< cudf::column > | cudf::datetime::extract_weekday (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Extracts a weekday from any datetime type and returns an int16_t cudf::column. More... | |
std::unique_ptr< cudf::column > | cudf::datetime::extract_hour (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Extracts hour from any datetime type and returns an int16_t cudf::column. More... | |
std::unique_ptr< cudf::column > | cudf::datetime::extract_minute (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Extracts minute from any datetime type and returns an int16_t cudf::column. More... | |
std::unique_ptr< cudf::column > | cudf::datetime::extract_second (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Extracts second from any datetime type and returns an int16_t cudf::column. More... | |
std::unique_ptr< cudf::column > | cudf::datetime::extract_millisecond_fraction (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Extracts millisecond fraction from any datetime type and returns an int16_t cudf::column. More... | |
std::unique_ptr< cudf::column > | cudf::datetime::extract_microsecond_fraction (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Extracts microsecond fraction from any datetime type and returns an int16_t cudf::column. More... | |
std::unique_ptr< cudf::column > | cudf::datetime::extract_nanosecond_fraction (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Extracts nanosecond fraction from any datetime type and returns an int16_t cudf::column. More... | |
std::unique_ptr<cudf::column> cudf::datetime::extract_day | ( | cudf::column_view const & | column, |
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Extracts day from any datetime type and returns an int16_t cudf::column.
column | cudf::column_view of the input datetime values |
mr | Device memory resource used to allocate device memory of the returned column |
cudf::logic_error | if input column datatype is not TIMESTAMP |
std::unique_ptr<cudf::column> cudf::datetime::extract_hour | ( | cudf::column_view const & | column, |
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Extracts hour from any datetime type and returns an int16_t cudf::column.
column | cudf::column_view of the input datetime values |
mr | Device memory resource used to allocate device memory of the returned column |
cudf::logic_error | if input column datatype is not TIMESTAMP |
std::unique_ptr<cudf::column> cudf::datetime::extract_microsecond_fraction | ( | cudf::column_view const & | column, |
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Extracts microsecond fraction from any datetime type and returns an int16_t cudf::column.
A microsecond fraction is only the 3 digits that make up the microsecond portion of a duration. For example, the microsecond fraction of 1.234567890 seconds is 567.
column | cudf::column_view of the input datetime values |
mr | Device memory resource used to allocate device memory of the returned column |
cudf::logic_error | if input column datatype is not TIMESTAMP |
std::unique_ptr<cudf::column> cudf::datetime::extract_millisecond_fraction | ( | cudf::column_view const & | column, |
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Extracts millisecond fraction from any datetime type and returns an int16_t cudf::column.
A millisecond fraction is only the 3 digits that make up the millisecond portion of a duration. For example, the millisecond fraction of 1.234567890 seconds is 234.
column | cudf::column_view of the input datetime values |
mr | Device memory resource used to allocate device memory of the returned column |
cudf::logic_error | if input column datatype is not TIMESTAMP |
std::unique_ptr<cudf::column> cudf::datetime::extract_minute | ( | cudf::column_view const & | column, |
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Extracts minute from any datetime type and returns an int16_t cudf::column.
column | cudf::column_view of the input datetime values |
mr | Device memory resource used to allocate device memory of the returned column |
cudf::logic_error | if input column datatype is not TIMESTAMP |
std::unique_ptr<cudf::column> cudf::datetime::extract_month | ( | cudf::column_view const & | column, |
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Extracts month from any datetime type and returns an int16_t cudf::column.
column | cudf::column_view of the input datetime values |
mr | Device memory resource used to allocate device memory of the returned column |
cudf::logic_error | if input column datatype is not TIMESTAMP |
std::unique_ptr<cudf::column> cudf::datetime::extract_nanosecond_fraction | ( | cudf::column_view const & | column, |
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Extracts nanosecond fraction from any datetime type and returns an int16_t cudf::column.
A nanosecond fraction is only the 3 digits that make up the nanosecond portion of a duration. For example, the nanosecond fraction of 1.234567890 seconds is 890.
column | cudf::column_view of the input datetime values |
mr | Device memory resource used to allocate device memory of the returned column |
cudf::logic_error | if input column datatype is not TIMESTAMP |
std::unique_ptr<cudf::column> cudf::datetime::extract_second | ( | cudf::column_view const & | column, |
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Extracts second from any datetime type and returns an int16_t cudf::column.
column | cudf::column_view of the input datetime values |
mr | Device memory resource used to allocate device memory of the returned column |
cudf::logic_error | if input column datatype is not TIMESTAMP |
std::unique_ptr<cudf::column> cudf::datetime::extract_weekday | ( | cudf::column_view const & | column, |
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Extracts a weekday from any datetime type and returns an int16_t cudf::column.
column | cudf::column_view of the input datetime values |
mr | Device memory resource used to allocate device memory of the returned column |
cudf::logic_error | if input column datatype is not TIMESTAMP |
std::unique_ptr<cudf::column> cudf::datetime::extract_year | ( | cudf::column_view const & | column, |
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Extracts year from any datetime type and returns an int16_t cudf::column.
column | cudf::column_view of the input datetime values |
mr | Device memory resource used to allocate device memory of the returned column |
cudf::logic_error | if input column datatype is not TIMESTAMP |