|
uint64_t | NES::Util::numberOfUniqueValues (std::vector< uint64_t > &values) |
| Checks if a string starts with a given string. More...
|
|
std::string | NES::Util::escapeJson (const std::string &str) |
| escapes all non text characters in a input string, such that the string could be processed as json. More...
|
|
void | NES::Util::findAndReplaceAll (std::string &data, const std::string &toSearch, const std::string &replaceStr) |
| function to replace all string occurrences More...
|
|
std::string | NES::Util::replaceFirst (std::string origin, const std::string &search, const std::string &replace) |
| This function replaces the first occurrence of search term in a string with the replace term. More...
|
|
bool | NES::Util::endsWith (const std::string &fullString, const std::string &ending) |
| Checks if a string ends with a given string. More...
|
|
bool | NES::Util::startsWith (const std::string &fullString, const std::string &ending) |
| Get number of unique elements. More...
|
|
std::string | NES::Util::toUpperCase (std::string string) |
| transforms the string to an upper case version More...
|
|
void | NES::Util::writeHeaderToCsvFile (const std::string &csvFileName, const std::string &header) |
| Truncates the file and then writes the header string as is to the file. More...
|
|
void | NES::Util::writeRowToCsvFile (const std::string &csvFileName, const std::string &row) |
| Appends the row as is to the csv file. More...
|
|
std::string | NES::Util::updateSourceName (std::string queryPlanSourceConsumed, std::string subQueryPlanSourceConsumed) |
| : Update the source names by sorting and then concatenating the source names from the sub- and query plan More...
|
|
uint64_t | NES::Util::murmurHash (uint64_t key) |
| hashes the key with murmur hash More...
|
|
uint64_t | NES::Util::countLines (const std::string &str) |
| Counts the number of lines of a string. More...
|
|
uint64_t | NES::Util::countLines (std::istream &stream) |
| Counts the number of lines of a stream, e.g., a file. More...
|
|
std::string_view | NES::Util::trimWhiteSpaces (std::string_view in) |
| removes leading and trailing whitespaces More...
|
|
std::string_view | NES::Util::trimChar (std::string_view in, char trimFor) |
| removes leading and trailing occurences of trimFor More...
|
|