113114115116117118119
* 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); }
117118119120121122123
public CollectionDataSource(String name, Object... args) { this(new CollectionInputFormat(), name, args); } public CollectionDataSource(String name, Object[][] args) { this(new CollectionInputFormat(), name, args); }
121122123124125126127
public CollectionDataSource(String name, Object[][] args) { this(new CollectionInputFormat(), name, args); } public CollectionDataSource(Collection<?> args, String name) { this(new CollectionInputFormat(), args, name); }
125126127128129130131
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); }
133134135136137138139
// -------------------------------------------------------------------------------------------- /** * for scala compatible, scala-to-java type conversion always has an object wrapper */ public CollectionDataSource(Object... args) { this(new CollectionInputFormat(), args); }