public < T0 , T1 , T2 > DataSource < Tuple3 < T0 , T1 , T2 > > types ( Class < T0 > type0 , Class < T1 > type1 , Class < T2 > type2 ) { TupleTypeInfo < Tuple3 < T0 , T1 , T2 > > types = TupleTypeInfo . getBasicTupleTypeInfo ( type0 , type1 , type2 ) ; CsvInputFormat < Tuple3 < T0 , T1 , T2 > > inputFormat = new CsvInputFormat < Tuple3 < T0 , T1 , T2 > > ( path ) ; configureInputFormat ( inputFormat , type0 , type1 , type2 ) ; return new DataSource < Tuple3 < T0 , T1 , T2 > > ( executionContext , inputFormat , types ) ; }
Specifies the types for the CSV fields . This method parses the CSV data to a 3 - tuple which has fields of the specified types . This method is overloaded for each possible length of the tuples to support type safe creation of data sets through CSV parsing .