HADOOP-16294: Enable access to input options by DistCp subclasses.
Adding a protected-scope getter for the DistCpOptions, so that a subclass does not need to save its own copy of the inputOptions supplied to its constructor, if it wishes to override the createInputFileListing method with logic similar to the original implementation, i.e. calling CopyListing#buildListing with a path and input options. Author: Andrew Olson
This commit is contained in:
parent
2713dcf6e9
commit
c15b3bca86
@ -416,6 +416,15 @@ private Path createMetaFolderPath() throws Exception {
|
|||||||
return metaFolderPath;
|
return metaFolderPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the context.
|
||||||
|
*
|
||||||
|
* @return the context
|
||||||
|
*/
|
||||||
|
protected DistCpContext getContext() {
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main function of the DistCp program. Parses the input arguments (via OptionsParser),
|
* Main function of the DistCp program. Parses the input arguments (via OptionsParser),
|
||||||
* and invokes the DistCp::run() method, via the ToolRunner.
|
* and invokes the DistCp::run() method, via the ToolRunner.
|
||||||
|
Loading…
Reference in New Issue
Block a user