|Modifier and Type||Method and Description|
Returns the path to a local copy of the file associated with the provided job ID and blob key.
Returns the content of the file for the BLOB with the provided job ID the blob key.
File getFile(JobID jobId, PermanentBlobKey key) throws IOException
default byte readFile(JobID jobId, PermanentBlobKey key) throws IOException
readFile will attempt to read the entire file after
retrieving it. If file reading and file retrieving is done in the same WRITE lock, it can
avoid the scenario that the path to the file is deleted concurrently by other threads when
the file is retrieved but not read yet.
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.