private static void checkNamedOutput ( JobConf conf , String namedOutput , boolean alreadyDefined ) { List < String > definedChannels = getNamedOutputsList ( conf ) ; if ( alreadyDefined && definedChannels . contains ( namedOutput ) ) { throw new IllegalArgumentException ( "Named output '" + namedOutput + "' already alreadyDefined" ) ; } else if ( ! alreadyDefined && ! definedChannels . contains ( namedOutput ) ) { throw new IllegalArgumentException ( "Named output '" + namedOutput + "' not defined" ) ; } }
Checks if a named output is alreadyDefined or not .