public Set < String > configureJob ( Job job ) throws FileNotFoundException , IOException { Set < String > instanceFiles = new HashSet < String > ( ) ; for ( Map . Entry < Path , List < Input > > entry : multiInputs . entrySet ( ) ) { for ( int inputId = 0 ; inputId < entry . getValue ( ) . size ( ) ; inputId ++ ) { Input input = entry . getValue ( ) . get ( inputId ) ; instanceFiles . addAll ( PangoolMultipleInputs . addInputPath ( job , input . path , input . inputFormat , input . inputProcessor , input . specificContext , inputId ) ) ; } } return instanceFiles ; }
Use this method for configuring a Job instance according to the multiple input specs that has been specified . Returns the instance files created .