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

Method ConstantGenerator

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

Source from the content-addressed store, hash-verified

215class ConstantGenerator : public ArrayGenerator {
216 public:
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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected