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

Method generator

cpp/src/arrow/testing/generator.cc:235–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 explicit RandomGenerator(std::shared_ptr<DataType> type) : type_(std::move(type)) {}
234
235 random::RandomArrayGenerator* generator() {
236 static random::RandomArrayGenerator instance(kTestSeed);
237 return &instance;
238 }
239
240 Result<std::shared_ptr<Array>> Generate(int64_t num_rows) override {
241 return generator()->ArrayOf(type_, num_rows);

Callers 1

operator()Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected