@Deprecated public class CollectionDataSource extends GenericDataSourceBase<Record,GenericInputFormat<Record>>
Iterator that is also Serializable.
CollectionDataSource source = new CollectionDataSource(mySerializableIterator, "IterSource");Using a Collection of Java Objects.
CollectionDataSource source2 = new CollectionDataSource(new List<String>(), "Collection source");Note that you can as many elements as you want to the constructor:
CollectionDataSource("Varargs String source", "some", "strings", "that", "get", "distributed");
The only limitation is that the elements need to have the same type.formatWrapper, statisticsKeycompilerHints, name, operatorInfo, parameters| Constructor and Description |
|---|
CollectionDataSource(Collection<?> args,
String name)
Deprecated.
|
CollectionDataSource(CollectionInputFormat f,
Collection<?> data,
String name)
Deprecated.
|
CollectionDataSource(CollectionInputFormat f,
Object... data)
Deprecated.
|
CollectionDataSource(CollectionInputFormat f,
String name,
Object... data)
Deprecated.
Creates a new instance for the given input using the given input format.
|
CollectionDataSource(CollectionInputFormat f,
String name,
Object[][] data)
Deprecated.
|
CollectionDataSource(CollectionInputFormat f,
T data,
String name)
Deprecated.
|
CollectionDataSource(Object... args)
Deprecated.
for scala compatible, scala-to-java type conversion always has an object wrapper
|
CollectionDataSource(String name,
Object... args)
Deprecated.
Creates a new instance for the given input using the given input format.
|
CollectionDataSource(String name,
Object[][] args)
Deprecated.
|
CollectionDataSource(T args,
String name)
Deprecated.
|
accept, executeOnCollections, getFormatWrapper, getStatisticsKey, getUserCodeWrapper, setStatisticsKey, toStringcreateUnionCascade, createUnionCascade, createUnionCascade, getCompilerHints, getDegreeOfParallelism, getName, getOperatorInfo, getParameters, setDegreeOfParallelism, setName, setParameter, setParameter, setParameterpublic CollectionDataSource(CollectionInputFormat f, String name, Object... data)
f - The CollectionInputFormat implementation used to read the data.data - The input data. It should be a collection, an array or a serializable iterator.name - The given name for the Pact, used in plans, logs and progress messages.public CollectionDataSource(CollectionInputFormat f, String name, Object[][] data)
public CollectionDataSource(CollectionInputFormat f, Collection<?> data, String name)
public CollectionDataSource(CollectionInputFormat f, T data, String name)
public CollectionDataSource(String name, Object... args)
args - The input data. It should be a collection, an array or a serializable iterator.name - The given name for the Pact, used in plans, logs and progress messages.public CollectionDataSource(Collection<?> args, String name)
public CollectionDataSource(T args,
String name)
public CollectionDataSource(Object... args)
public CollectionDataSource(CollectionInputFormat f, Object... data)
Copyright © 2015 The Apache Software Foundation. All rights reserved.