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

Method Generate

cpp/src/arrow/compute/kernels/test_util_internal.h:272–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 : RandomImpl(seed, TypeTraits<ArrowType>::type_singleton()) {}
271
272 std::shared_ptr<Array> Generate(uint64_t count, int range, double null_prob) {
273 CType min = std::numeric_limits<CType>::min();
274 CType max = min + range;
275 if (sizeof(CType) < 4 && (range + min) > std::numeric_limits<CType>::max()) {
276 max = std::numeric_limits<CType>::max();
277 }
278 return generator_.Numeric<ArrowType>(count, min, max, null_prob);
279 }
280};
281
282} // namespace compute

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected