CollectorFactory
object CollectorFactory
The CollectorFactory object is responsible for creating and managing Collector instances. It maintains a map of collector creation functions, keyed by type. It also provides functions to register new types of collectors and to create collectors from a JsonArray.