程序包 | 说明 |
---|---|
org.apache.hadoop.tools.distcp2 | |
org.apache.hadoop.tools.distcp2.util |
限定符和类型 | 方法和说明 |
---|---|
static DistCpOptions.FileAttribute |
DistCpOptions.FileAttribute.getAttribute(char symbol) |
static DistCpOptions.FileAttribute |
DistCpOptions.FileAttribute.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DistCpOptions.FileAttribute[] |
DistCpOptions.FileAttribute.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
Iterator<DistCpOptions.FileAttribute> |
DistCpOptions.preserveAttributes()
Returns an iterator with the list of file attributes to preserve
|
限定符和类型 | 方法和说明 |
---|---|
void |
DistCpOptions.preserve(DistCpOptions.FileAttribute fileAttribute)
Add file attributes that need to be preserved.
|
boolean |
DistCpOptions.shouldPreserve(DistCpOptions.FileAttribute attribute)
Checks if the input attibute should be preserved or not
|
限定符和类型 | 方法和说明 |
---|---|
static EnumSet<DistCpOptions.FileAttribute> |
DistCpUtils.unpackAttributes(String attributes)
Un packs preservation attribute string containing the first character of
each preservation attribute back to a set of attributes to preserve
|
限定符和类型 | 方法和说明 |
---|---|
static String |
DistCpUtils.packAttributes(EnumSet<DistCpOptions.FileAttribute> attributes)
Pack file preservation attributes into a string, containing
just the first character of each preservation attribute
|
static void |
DistCpUtils.preserve(FileSystem targetFS,
Path path,
FileStatus srcFileStatus,
EnumSet<DistCpOptions.FileAttribute> attributes)
Preserve attribute on file matching that of the file status being sent
as argument.
|
Copyright © 2009 The Apache Software Foundation