Interface CollectionMergeStrategy

All Known Implementing Classes:
DeduplicatingItemIdMergeStrategy, SimpleCollectionMergeStrategy

@ThreadSafe public interface CollectionMergeStrategy
Strategy used to merge the a number of source item collections into a target item collection.

All implementations of this interface must be thread-safe.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    merge(List<Item<T>> target, List<List<Item<T>>> sources)
    Merges the results of each child pipeline in to the collection of Item given to this stage.
  • Method Details

    • merge

      <T> void merge(@Nonnull @NonnullElements List<Item<T>> target, @Nonnull @NonnullElements List<List<Item<T>>> sources)
      Merges the results of each child pipeline in to the collection of Item given to this stage.
      Type Parameters:
      T - type of data contained in the items
      Parameters:
      target - collection in to which all the Items should be merged, never null
      sources - collections of Items to be merged in to the target, never null not containing any null elements