Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-1648

InputStreamCallback OutputStreamCallback should use Input/OutputStream instead of BaseStream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.13.0

    Description

      The current Input/Output callback interfaces use the BaseStream instead of the respective InputStream, OutputStream.

      virtual int64_t InputStreamCallback::process(const std::shared_ptr<io::BaseStream>& stream) = 0;
      
      virtual int64_t OutputStreamCallback::process(const std::shared_ptr<io::BaseStream>& stream) = 0;
      

      Ideally it should look like this

      virtual int64_t InputStreamCallback::process(const std::shared_ptr<io::InputStream>& stream) = 0;
      
      virtual int64_t OutputStreamCallback::process(const std::shared_ptr<io::OutputStream>& stream) = 0;
      

      Without this it is impossible to create and use ReadOnly/WriteOnly streams for FlowFile IO (the BaseStream requires implementing both the Input and Output Stream interfaces)

      However there may be some feature dependent on this solution. (e.g. calling write from InputStreamCallback)

       

      Attachments

        Activity

          People

            lordgamez Gábor Gyimesi
            MZink Martin Zink
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h