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

Function MakeIntegers

cpp/src/arrow/util/hashing_benchmark.cc:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33template <class Integer>
34static std::vector<Integer> MakeIntegers(int32_t n_values) {
35 std::vector<Integer> values(n_values);
36
37 std::default_random_engine gen(42);
38 std::uniform_int_distribution<Integer> values_dist(0,
39 std::numeric_limits<Integer>::max());
40 std::generate(values.begin(), values.end(),
41 [&]() { return static_cast<Integer>(values_dist(gen)); });
42 return values;
43}
44
45static std::vector<std::string> MakeStrings(int32_t n_values, int32_t min_length,
46 int32_t max_length) {

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected