Class ToSetHandler<T>

  • Type Parameters:
    T - the type of object contained in the input iterable
    All Implemented Interfaces:
    OperationHandler<ToSet<T>>, OutputOperationHandler<ToSet<T>,​Set<? extends T>>

    public class ToSetHandler<T>
    extends Object
    implements OutputOperationHandler<ToSet<T>,​Set<? extends T>>
    The ToSetHandler handles ToSet operations by collecting the items in the input Iterable into a Set, removing duplicate items in the process. Use of this operation will cause all of the items present in the input iterable to be brought into memory, so this operation is not suitable for situations where the size of the input iterable is very large.