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

Method SlicedArrayFactory

cpp/src/arrow/c/bridge_test.cc:4351–4357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4349 }
4350
4351 static ArrayFactory SlicedArrayFactory(ArrayFactory factory) {
4352 return [=]() -> Result<std::shared_ptr<Array>> {
4353 ARROW_ASSIGN_OR_RAISE(auto arr, factory());
4354 DCHECK_GE(arr->length(), 2);
4355 return arr->Slice(1, arr->length() - 2);
4356 };
4357 }
4358
4359 template <typename ArrayFactory>
4360 void TestWithArrayFactory(ArrayFactory&& factory) {

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
SliceMethod · 0.45

Tested by

no test coverage detected