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

Function MakeStreamTransformFunc

python/pyarrow/src/arrow/python/io.cc:376–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376std::shared_ptr<StreamWrapFunc> MakeStreamTransformFunc(TransformInputStreamVTable vtable,
377 PyObject* handler) {
378 TransformInputStream::TransformFunc transform(
379 TransformFunctionWrapper{std::move(vtable.transform), handler});
380 StreamWrapFunc func = [transform](std::shared_ptr<::arrow::io::InputStream> wrapped) {
381 return std::make_shared<TransformInputStream>(wrapped, transform);
382 };
383 return std::make_shared<StreamWrapFunc>(func);
384}
385
386} // namespace py
387} // namespace arrow

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected