public Path modifyPathToFinalDestination ( Path path ) throws IOException { String res ; if ( tempFileOriginator . equals ( DEFAULT_FOUTPUTCOMMITTER_V1 ) ) { res = parseHadoopOutputCommitter ( path , true , hostNameScheme ) ; } else { res = extractNameFromTempPath ( path , true , hostNameScheme ) ; } return new Path ( hostNameScheme , res ) ; }
Accept temporary path and return a final destination path