Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1277

Add a static merge() operator that takes all streams to merge as input

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • None
    • None

    Description

      The current design forces users to do stuff like this (I can provide more than a few examples already)

      List<MessageStream<GenericRecord>> xTrackingMonitoringEvents = new ArrayList<>();
      // ... populate the list
       MessageStream<GenericRecord>  initialInputStream =
              xTrackingMonitoringEvents.remove(xTrackingMonitoringEvents.size() - 1);
          Collection<MessageStream<? extends GenericRecord>> otherStreams =
              (Collection<MessageStream<? extends GenericRecord>>) (Object) xTrackingMonitoringEvents;
      
          initialInputStream
              .merge(otherStreams)
      // .do other stuff
      
      

      ^ eww. Removing one item from the array so it can be used as the initial message stream seems to cause pain.

      Lets see if we can come up with a cleaner way to do merge()

      Attachments

        Issue Links

          Activity

            People

              pmaheshwari Prateek Maheshwari
              jmakes Jake Maes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: