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

Method Slices

cpp/src/arrow/array/concatenate_test.cc:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 ArrayVector Slices(const std::shared_ptr<Array>& array,
96 const std::vector<int32_t>& offsets) {
97 ArrayVector slices(offsets.size() - 1);
98 for (size_t i = 0; i != slices.size(); ++i) {
99 slices[i] = array->Slice(offsets[i], offsets[i + 1] - offsets[i]);
100 }
101 return slices;
102 }
103
104 std::shared_ptr<Buffer> ValidityBitmap(int64_t size, double null_probability) {
105 return rag_.NullBitmap(size, null_probability, kDefaultBufferAlignment,

Callers 1

CheckMethod · 0.45

Calls 2

sizeMethod · 0.45
SliceMethod · 0.45

Tested by

no test coverage detected