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

Method read

extensions/script/lua/LuaProcessSession.cpp:64–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void LuaProcessSession::read(const std::shared_ptr<script::ScriptFlowFile> &script_flow_file,
65 sol::table input_stream_callback) {
66 if (!session_) {
67 throw std::runtime_error("Access of ProcessSession after it has been released");
68 }
69
70 auto flow_file = script_flow_file->getFlowFile();
71
72 if (!flow_file) {
73 throw std::runtime_error("Access of FlowFile after it has been released");
74 }
75
76 LuaInputStreamCallback lua_callback(input_stream_callback);
77 session_->read(flow_file, &lua_callback);
78}
79
80void LuaProcessSession::write(const std::shared_ptr<script::ScriptFlowFile> &script_flow_file,
81 sol::table output_stream_callback) {

Callers

nothing calls this directly

Calls 1

getFlowFileMethod · 0.80

Tested by

no test coverage detected