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

Method Generate

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

Source from the content-addressed store, hash-verified

217 explicit ConstantGenerator(std::shared_ptr<Scalar> value) : value_(std::move(value)) {}
218
219 Result<std::shared_ptr<Array>> Generate(int64_t num_rows) override {
220 return MakeArrayFromScalar(*value_, num_rows);
221 }
222
223 std::shared_ptr<DataType> type() const override { return value_->type; }
224

Callers

nothing calls this directly

Calls 1

MakeArrayFromScalarFunction · 0.50

Tested by

no test coverage detected