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

Method MakeInt32Array

cpp/src/gandiva/annotator_test.cc:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32};
33
34ArrayPtr TestAnnotator::MakeInt32Array(int length) {
35 arrow::Status status;
36
37 auto validity = *arrow::AllocateBuffer((length + 63) / 8);
38
39 auto values = *arrow::AllocateBuffer(length * sizeof(int32_t));
40
41 auto array_data = arrow::ArrayData::Make(arrow::int32(), length,
42 {std::move(validity), std::move(values)});
43 return arrow::MakeArray(array_data);
44}
45
46TEST_F(TestAnnotator, TestAdd) {
47 Annotator annotator;

Callers

nothing calls this directly

Calls 3

MakeFunction · 0.70
AllocateBufferFunction · 0.50
MakeArrayFunction · 0.50

Tested by

no test coverage detected