Skip to content

Commit

Permalink
[FLINK-2238][api] Generalized fromCollection(Seq) to fromCollection(I…
Browse files Browse the repository at this point in the history
…terable)

This closes apache#956
  • Loading branch information
sachingoel0101 authored and fhueske committed Jul 30, 2015
1 parent 68b1559 commit 3c236b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,13 @@ class ExecutionEnvironment(javaEnv: JavaEnv) {
}

/**
* Creates a DataSet from the given non-empty [[Seq]].
* Creates a DataSet from the given non-empty [[Iterable]].
*
* Note that this operation will result in a non-parallel data source, i.e. a data source with
* a parallelism of one.
*/
def fromCollection[T: ClassTag : TypeInformation](
data: Seq[T]): DataSet[T] = {
data: Iterable[T]): DataSet[T] = {
require(data != null, "Data must not be null.")

val typeInfo = implicitly[TypeInformation[T]]
Expand Down

0 comments on commit 3c236b2

Please sign in to comment.