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

Function MakeRandomInt32Array

cpp/src/arrow/ipc/test_common.cc:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82Status MakeRandomInt32Array(int64_t length, bool include_nulls, MemoryPool* pool,
83 std::shared_ptr<Array>* out, uint32_t seed, int32_t min,
84 int32_t max) {
85 random::RandomArrayGenerator rand(seed);
86 const double null_probability = include_nulls ? 0.5 : 0.0;
87
88 *out = rand.Int32(length, min, max, null_probability);
89
90 return Status::OK();
91}
92
93Status MakeRandomInt64Array(int64_t length, bool include_nulls, MemoryPool* pool,
94 std::shared_ptr<Array>* out, uint32_t seed) {

Callers 11

MakeListRecordBatchSizedFunction · 0.85
MakeNonNullRecordBatchFunction · 0.85
MakeDeeplyNestedListFunction · 0.85
MakeDeeplyNestedListViewFunction · 0.85
TEST_FFunction · 0.85
WriteToMmapMethod · 0.85

Calls 2

Int32Method · 0.80
OKFunction · 0.50

Tested by

no test coverage detected