public class GlobbedCopyListing extends CopyListing
| 构造器和说明 |
|---|
GlobbedCopyListing(Configuration configuration,
Credentials credentials)
Constructor, to initialize the configuration.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doBuildListing(Path pathToListingFile,
DistCpOptions options)
Implementation of CopyListing::buildListing().
|
protected long |
getBytesToCopy()
Return the total bytes that distCp should copy for the source paths
This doesn't consider whether file is same should be skipped during copy
|
protected long |
getNumberOfPaths()
Return the total number of paths to distcp, includes directories as well
This doesn't consider whether file/dir is already present and should be skipped during copy
|
protected void |
validatePaths(DistCpOptions options)
Validate input and output paths
|
buildListing, getCopyListing, getCredentials, setCredentialsgetConf, setConfpublic GlobbedCopyListing(Configuration configuration, Credentials credentials)
configuration - The input Configuration object.credentials - Credentials object on which the FS delegation tokens are cached. If null
delegation token caching is skippedprotected void validatePaths(DistCpOptions options) throws IOException, org.apache.hadoop.tools.distcp2.CopyListing.InvalidInputException
validatePaths 在类中 CopyListingoptions - - Input optionsIOExceptionorg.apache.hadoop.tools.distcp2.CopyListing.InvalidInputExceptionpublic void doBuildListing(Path pathToListingFile, DistCpOptions options) throws IOException
doBuildListing 在类中 CopyListingpathToListingFile - The location at which the copy-listing file
is to be created.options - Input Options for DistCp (indicating source/target paths.)IOExceptionprotected long getBytesToCopy()
getBytesToCopy 在类中 CopyListingprotected long getNumberOfPaths()
getNumberOfPaths 在类中 CopyListingCopyright © 2009 The Apache Software Foundation