Interface AuxiliaryLocalPathHandler
@Public
@Evolving
public interface AuxiliaryLocalPathHandler
An Interface that can retrieve local directories to read from or write to.
Components can implement this interface to link it to
their own Directory Handler Service
-
Method Summary
Modifier and TypeMethodDescriptionIterable<org.apache.hadoop.fs.Path>Get all paths from the local FS for reading for a given Auxiliary Service.org.apache.hadoop.fs.PathgetLocalPathForRead(String path) Get a path from the local FS for reading for a given Auxiliary Service.org.apache.hadoop.fs.PathgetLocalPathForWrite(String path) Get a path from the local FS for writing for a given Auxiliary Service.org.apache.hadoop.fs.PathgetLocalPathForWrite(String path, long size) Get a path from the local FS for writing a file of an estimated size for a given Auxiliary Service.
-
Method Details
-
getLocalPathForRead
Get a path from the local FS for reading for a given Auxiliary Service.- Parameters:
path- the requested path- Returns:
- the complete path to the file on a local disk
- Throws:
IOException- if the file read encounters a problem
-
getLocalPathForWrite
Get a path from the local FS for writing for a given Auxiliary Service.- Parameters:
path- the requested path- Returns:
- the complete path to the file on a local disk
- Throws:
IOException- if the path creations fails
-
getLocalPathForWrite
Get a path from the local FS for writing a file of an estimated size for a given Auxiliary Service.- Parameters:
path- the requested pathsize- the size of the file that is going to be written- Returns:
- the complete path to the file on a local disk
- Throws:
IOException- if the path creations fails
-
getAllLocalPathsForRead
Get all paths from the local FS for reading for a given Auxiliary Service.- Parameters:
path- the requested path- Returns:
- the complete path list to the file on a local disk as an Iterable
- Throws:
IOException- if the file read encounters a problem
-