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

Method Init

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

Source from the content-addressed store, hash-verified

3285class RegionGenerator : public TpchTableGenerator {
3286 public:
3287 Status Init(std::vector<std::string> columns, double /*scale_factor*/,
3288 int64_t /*batch_size*/, int64_t seed) override {
3289 ARROW_ASSIGN_OR_RAISE(schema_,
3290 SetOutputColumns(columns, kTypes, kNameMap, column_indices_));
3291 seed_ = seed;
3292 rng_.seed(seed_);
3293 return Status::OK();
3294 }
3295
3296 Status StartProducing(size_t num_threads, OutputBatchCallback output_callback,
3297 FinishedCallback finished_callback,

Callers

nothing calls this directly

Calls 3

SetOutputColumnsFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected