addCollection

addCollection(dict: Dictionary);

The addCollection method of the MergeIterator class adds the collection specified by the value of the dict parameter to the merged iterator view.

The parameter value must be a Dictionary type with a membership compatible with existing collections associated with the iterator. When multiple dictionaries are added to the iterator, they must also have a common compatible subset of keys.

An exception is raised if you attempt to add a dictionary that is already attached to the iterator and therefore part of the merged iterator view.