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

Function MakeBooleanInt32Int64Batch

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

Source from the content-addressed store, hash-verified

2998}
2999
3000Status MakeBooleanInt32Int64Batch(const int length, std::shared_ptr<RecordBatch>* out) {
3001 auto schema_ = MakeBooleanInt32Int64Schema();
3002 std::shared_ptr<Array> a0, a1, a2;
3003 RETURN_NOT_OK(MakeRandomBooleanArray(length, false, &a0));
3004 RETURN_NOT_OK(MakeRandomInt32Array(length, false, arrow::default_memory_pool(), &a1));
3005 RETURN_NOT_OK(MakeRandomInt64Array(length, false, arrow::default_memory_pool(), &a2));
3006 *out = RecordBatch::Make(std::move(schema_), length, {a0, a1, a2});
3007 return Status::OK();
3008}
3009
3010std::shared_ptr<Buffer> MakeBooleanInt32Int64File(int num_rows, int num_batches) {
3011 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