MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / read

Method read

extensions/script/python/PyProcessSession.cpp:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void PyProcessSession::read(std::shared_ptr<script::ScriptFlowFile> script_flow_file,
71 py::object input_stream_callback) {
72 if (!session_) {
73 throw std::runtime_error("Access of ProcessSession after it has been released");
74 }
75
76 auto flow_file = script_flow_file->getFlowFile();
77
78 if (!flow_file) {
79 throw std::runtime_error("Access of FlowFile after it has been released");
80 }
81
82 PyInputStreamCallback py_callback(input_stream_callback);
83 session_->read(flow_file, &py_callback);
84}
85
86void PyProcessSession::write(std::shared_ptr<script::ScriptFlowFile> script_flow_file,
87 py::object output_stream_callback) {

Callers

nothing calls this directly

Calls 1

getFlowFileMethod · 0.80

Tested by

no test coverage detected