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

Method SlicedArrayFactory

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

Source from the content-addressed store, hash-verified

3917 }
3918
3919 static ArrayFactory SlicedArrayFactory(ArrayFactory factory) {
3920 return [=]() -> Result<std::shared_ptr<Array>> {
3921 ARROW_ASSIGN_OR_RAISE(auto arr, factory());
3922 DCHECK_GE(arr->length(), 2);
3923 return arr->Slice(1, arr->length() - 2);
3924 };
3925 }
3926
3927 template <typename ArrayFactory>
3928 void TestWithArrayFactory(ArrayFactory&& factory) {

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
SliceMethod · 0.45

Tested by

no test coverage detected