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

Method SlicedArrayFactory

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

Source from the content-addressed store, hash-verified

3850 }
3851
3852 static ArrayFactory SlicedArrayFactory(ArrayFactory factory) {
3853 return [=]() -> Result<std::shared_ptr<Array>> {
3854 ARROW_ASSIGN_OR_RAISE(auto arr, factory());
3855 DCHECK_GE(arr->length(), 2);
3856 return arr->Slice(1, arr->length() - 2);
3857 };
3858 }
3859
3860 template <typename ArrayFactory>
3861 void TestWithArrayFactory(ArrayFactory&& factory) {

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
SliceMethod · 0.45

Tested by

no test coverage detected