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

Function MakeBooleanInt32Int64Batch

cpp/src/arrow/ipc/read_write_test.cc:2996–3004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2994}
2995
2996Status MakeBooleanInt32Int64Batch(const int length, std::shared_ptr<RecordBatch>* out) {
2997 auto schema_ = MakeBooleanInt32Int64Schema();
2998 std::shared_ptr<Array> a0, a1, a2;
2999 RETURN_NOT_OK(MakeRandomBooleanArray(length, false, &a0));
3000 RETURN_NOT_OK(MakeRandomInt32Array(length, false, arrow::default_memory_pool(), &a1));
3001 RETURN_NOT_OK(MakeRandomInt64Array(length, false, arrow::default_memory_pool(), &a2));
3002 *out = RecordBatch::Make(std::move(schema_), length, {a0, a1, a2});
3003 return Status::OK();
3004}
3005
3006std::shared_ptr<Buffer> MakeBooleanInt32Int64File(int num_rows, int num_batches) {
3007 auto schema_ = MakeBooleanInt32Int64Schema();

Callers 1

Calls 7

MakeRandomBooleanArrayFunction · 0.85
MakeRandomInt32ArrayFunction · 0.85
default_memory_poolFunction · 0.85
MakeRandomInt64ArrayFunction · 0.85
MakeFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected