public static interface CopyFromLocalOperation.CopyFromLocalOperationCallbacks
CopyFromLocalOperation to interact
with any external resources.| Modifier and Type | Method and Description |
|---|---|
void |
copyLocalFileFromTo(File file,
org.apache.hadoop.fs.Path source,
org.apache.hadoop.fs.Path destination)
Copy / Upload a file from a source path to a destination path.
|
boolean |
createEmptyDir(org.apache.hadoop.fs.Path path,
StoreContext storeContext)
Create empty directory at path.
|
boolean |
deleteLocal(org.apache.hadoop.fs.Path path,
boolean recursive)
Delete file / directory at path.
|
org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path path)
Get the file status for a path.
|
org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus> |
listLocalStatusIterator(org.apache.hadoop.fs.Path path)
List all entries (files AND directories) for a path.
|
File |
pathToLocalFile(org.apache.hadoop.fs.Path path)
Get the file from a path.
|
org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus> listLocalStatusIterator(org.apache.hadoop.fs.Path path)
throws IOException
path - - path to listIOException - - for any failureorg.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path path)
throws IOException
path - - target pathIOException - - for any failureFile pathToLocalFile(org.apache.hadoop.fs.Path path)
path - - target pathboolean deleteLocal(org.apache.hadoop.fs.Path path,
boolean recursive)
throws IOException
path - - target pathrecursive - - recursive deletionIOException - for any failurevoid copyLocalFileFromTo(File file, org.apache.hadoop.fs.Path source, org.apache.hadoop.fs.Path destination) throws IOException
file - - target filesource - - source pathdestination - - destination pathIOException - for any failureboolean createEmptyDir(org.apache.hadoop.fs.Path path,
StoreContext storeContext)
throws IOException
path - - target pathstoreContext - - store contextIOException - for any failureCopyright © 2008–2022 Apache Software Foundation. All rights reserved.