#include <cpark.h>
|
enum class | ParallelPolicy { Sequential
, Thread
} |
|
◆ getDebugName()
Returns the debug name, a name that will be shown in the log message of the cpark tasks created with this configuration
- Examples
- simple.cpp.
◆ getLoggerOrNullStream()
constexpr std::ostream & cpark::Config::getLoggerOrNullStream |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns an ostream that will be used as a logger. If the logger is not set by user, it returns an ostream that eats everything put to it.
◆ getLoggerPtr()
constexpr std::ostream * cpark::Config::getLoggerPtr |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns a pointer to an ostream that will be used as a logger.
◆ getParallelPolicy()
constexpr ParallelPolicy cpark::Config::getParallelPolicy |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns the parallel policy of the cpark tasks.
◆ getParallelTaskNum()
Returns the parallel task number of the cpark task, which typically means the number of splits in an Rdd.
◆ setDebugName()
Config & cpark::Config::setDebugName |
( |
std::string |
name | ) |
|
|
inlinenoexcept |
◆ setLogger()
Config & cpark::Config::setLogger |
( |
std::ostream * |
logger | ) |
|
|
inlinenoexcept |
◆ setParallelPolicy()
Config & cpark::Config::setParallelPolicy |
( |
ParallelPolicy |
policy | ) |
|
|
inlinenoexcept |
◆ setParallelTaskNum()
Config & cpark::Config::setParallelTaskNum |
( |
size_t |
num = 0 | ) |
|
|
inlinenoexcept |
The documentation for this class was generated from the following file: