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

Method Init

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

Source from the content-addressed store, hash-verified

3191class NationGenerator : public TpchTableGenerator {
3192 public:
3193 Status Init(std::vector<std::string> columns, double /*scale_factor*/,
3194 int64_t /*batch_size*/, int64_t seed) override {
3195 ARROW_ASSIGN_OR_RAISE(schema_,
3196 SetOutputColumns(columns, kTypes, kNameMap, column_indices_));
3197 seed_ = seed;
3198 rng_.seed(seed_);
3199 return Status::OK();
3200 }
3201
3202 Status StartProducing(size_t /*num_threads*/, OutputBatchCallback output_callback,
3203 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