private URI getNextTemporaryPath ( ) { Path basePath = ghfs . getHadoopPath ( finalGcsPath ) ; Path baseDir = basePath . getParent ( ) ; Path tempPath = new Path ( baseDir , String . format ( "%s%s.%d.%s" , TEMPFILE_PREFIX , basePath . getName ( ) , curComponentIndex , UUID . randomUUID ( ) . toString ( ) ) ) ; return ghfs . getGcsPath ( tempPath ) ; }
Returns URI to be used for the next tail file in the series .