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

Method write

extensions/script/lua/LuaProcessSession.cpp:80–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void LuaProcessSession::write(const std::shared_ptr<script::ScriptFlowFile> &script_flow_file,
81 sol::table output_stream_callback) {
82 if (!session_) {
83 throw std::runtime_error("Access of ProcessSession after it has been released");
84 }
85
86 auto flow_file = script_flow_file->getFlowFile();
87
88 if (!flow_file) {
89 throw std::runtime_error("Access of FlowFile after it has been released");
90 }
91
92 LuaOutputStreamCallback lua_callback(output_stream_callback);
93 session_->write(flow_file, &lua_callback);
94}
95
96std::shared_ptr<script::ScriptFlowFile> LuaProcessSession::create() {
97 if (!session_) {

Callers

nothing calls this directly

Calls 1

getFlowFileMethod · 0.80

Tested by

no test coverage detected