101102103104105106107
* The input data. It should be a collection, an array or a serializable iterator. * @param name * The given name for the Pact, used in plans, logs and progress messages. */ public CollectionDataSource(String name, Object... args) { this(new CollectionInputFormat(), name, args); }
105106107108109110111
public CollectionDataSource(String name, Object... args) { this(new CollectionInputFormat(), name, args); } public CollectionDataSource(String name, Object[][] args) { this(new CollectionInputFormat(), name, args); }
109110111112113114115
public CollectionDataSource(String name, Object[][] args) { this(new CollectionInputFormat(), name, args); } public CollectionDataSource(Collection<?> args, String name) { this(new CollectionInputFormat(), args, name); }
113114115116117118119
public CollectionDataSource(Collection<?> args, String name) { this(new CollectionInputFormat(), args, name); } public <T extends Iterator<?>, Serializable> CollectionDataSource(T args, String name) { this(new CollectionInputFormat(), args, name); }
121122123124125126127
// -------------------------------------------------------------------------------------------- /** * for scala compatible, scala-to-java type conversion always has an object wrapper */ public CollectionDataSource(Object... args) { this(new CollectionInputFormat(), args); }