public DataSource < Long > generateSequence ( long from , long to ) { return fromParallelCollection ( new NumberSequenceIterator ( from , to ) , BasicTypeInfo . LONG_TYPE_INFO ) ; }
Creates a new data set that contains a sequence of numbers . The data set will be created in parallel so there is no guarantee about the oder of the elements .