public Set < String > configureJob ( Job job ) throws FileNotFoundException , IOException , TupleMRException { Set < String > instanceFiles = new HashSet < String > ( ) ; for ( Output output : getNamedOutputs ( ) ) { try { if ( output . isDefault ) { instanceFiles . add ( PangoolMultipleOutputs . setDefaultNamedOutput ( job , output . outputFormat , output . keyClass , output . valueClass ) ) ; } else { instanceFiles . add ( PangoolMultipleOutputs . addNamedOutput ( job , output . name , output . outputFormat , output . keyClass , output . valueClass ) ) ; } } catch ( URISyntaxException e1 ) { throw new TupleMRException ( e1 ) ; } for ( Map . Entry < String , String > contextKeyValue : output . specificContext . entrySet ( ) ) { PangoolMultipleOutputs . addNamedOutputContext ( job , output . name , contextKeyValue . getKey ( ) , contextKeyValue . getValue ( ) ) ; } } return instanceFiles ; }
Use this method for configuring a Job instance according to the named outputs specs that has been specified . Returns the instance files that have been created .