Github user minifirocks commented on a diff in the pull request:
https://github.com/apache/nifi-minifi-cpp/pull/148#discussion_r146120896
--- Diff: libminifi/include/core/ProcessSession.h ---
@@ -151,11 +152,47 @@ class ProcessSession {
bool keepSource,
uint64_t offset, char inputDelimiter);
+ /**
+ * Exports the data stream to a file
+ * @param string file to export stream to
+ * @param flow flow file
+ * @param bool whether or not to keep the content in the flow file
+ */
+ bool exportContent(const std::string &destination,
--- End diff --
the mergeContent.h
// Archive Class
class ArchiveMerge {
public:
do not reply on persistent storage, it use archive_write_open(arch, this,
NULL, archive_write, NULL); to write the process content in RAM into flowfile.
---