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

Method SlicedArrayFactory

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

Source from the content-addressed store, hash-verified

4290 }
4291
4292 static ArrayFactory SlicedArrayFactory(ArrayFactory factory) {
4293 return [=]() -> Result<std::shared_ptr<Array>> {
4294 ARROW_ASSIGN_OR_RAISE(auto arr, factory());
4295 DCHECK_GE(arr->length(), 2);
4296 return arr->Slice(1, arr->length() - 2);
4297 };
4298 }
4299
4300 template <typename ArrayFactory>
4301 void TestWithArrayFactory(ArrayFactory&& factory) {

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
SliceMethod · 0.45

Tested by

no test coverage detected