MCPcopy Create free account
hub / github.com/apache/arrow / GenerateTerminator

Method GenerateTerminator

cpp/src/arrow/acero/tpch_node.cc:380–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380bool TpchPseudotext::GenerateTerminator(int64_t& offset, random::pcg32_fast& rng,
381 char* arr) {
382 bool result = GenerateWord(offset, rng, arr, Terminators, kNumTerminators);
383 // Swap the space with the terminator
384 if (result) std::swap(*(arr + offset - 2), *(arr + offset - 1));
385 return result;
386}
387
388bool TpchPseudotext::GenerateNounPhrase(int64_t& offset, random::pcg32_fast& rng,
389 char* arr) {

Callers

nothing calls this directly

Calls 1

swapFunction · 0.85

Tested by

no test coverage detected