@InterfaceAudience.Public @InterfaceStability.Evolving public final class DistCpOptions extends Object
DistCpOptions.Builder class
This class is immutable.| Modifier and Type | Class and Description |
|---|---|
static class |
DistCpOptions.Builder
The builder of the
DistCpOptions. |
static class |
DistCpOptions.FileAttribute
File attributes for preserve.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NUM_LISTSTATUS_THREADS |
| Modifier and Type | Method and Description |
|---|---|
void |
appendToConf(org.apache.hadoop.conf.Configuration conf)
Add options to configuration.
|
org.apache.hadoop.fs.Path |
getAtomicWorkPath() |
int |
getBlocksPerChunk() |
int |
getCopyBufferSize() |
String |
getCopyStrategy() |
String |
getFiltersFile() |
String |
getFromSnapshot() |
org.apache.hadoop.fs.Path |
getLogPath() |
float |
getMapBandwidth() |
int |
getMaxMaps() |
int |
getNumListstatusThreads() |
Set<DistCpOptions.FileAttribute> |
getPreserveAttributes() |
org.apache.hadoop.fs.Path |
getSourceFileListing() |
List<org.apache.hadoop.fs.Path> |
getSourcePaths() |
org.apache.hadoop.fs.Path |
getTargetPath() |
String |
getToSnapshot() |
org.apache.hadoop.fs.Path |
getTrackPath() |
boolean |
shouldAppend() |
boolean |
shouldAtomicCommit() |
boolean |
shouldBlock() |
boolean |
shouldDeleteMissing() |
boolean |
shouldDirectWrite() |
boolean |
shouldIgnoreFailures() |
boolean |
shouldOverwrite() |
boolean |
shouldPreserve(DistCpOptions.FileAttribute attribute)
Checks if the input attribute should be preserved or not.
|
boolean |
shouldSkipCRC() |
boolean |
shouldSyncFolder() |
boolean |
shouldUseDiff() |
boolean |
shouldUseRdiff() |
boolean |
shouldUseSnapshotDiff() |
boolean |
shouldVerboseLog() |
String |
toString()
Utility to easily string-ify Options, for logging.
|
public static final int MAX_NUM_LISTSTATUS_THREADS
public org.apache.hadoop.fs.Path getSourceFileListing()
public List<org.apache.hadoop.fs.Path> getSourcePaths()
public org.apache.hadoop.fs.Path getTargetPath()
public boolean shouldAtomicCommit()
public org.apache.hadoop.fs.Path getAtomicWorkPath()
public boolean shouldSyncFolder()
public boolean shouldDeleteMissing()
public boolean shouldIgnoreFailures()
public boolean shouldOverwrite()
public boolean shouldAppend()
public boolean shouldSkipCRC()
public boolean shouldBlock()
public boolean shouldUseDiff()
public boolean shouldUseRdiff()
public boolean shouldUseSnapshotDiff()
public String getFromSnapshot()
public String getToSnapshot()
public String getFiltersFile()
public org.apache.hadoop.fs.Path getLogPath()
public String getCopyStrategy()
public int getNumListstatusThreads()
public int getMaxMaps()
public float getMapBandwidth()
public Set<DistCpOptions.FileAttribute> getPreserveAttributes()
public boolean shouldPreserve(DistCpOptions.FileAttribute attribute)
attribute - - Attribute to checkpublic int getBlocksPerChunk()
public int getCopyBufferSize()
public boolean shouldVerboseLog()
public org.apache.hadoop.fs.Path getTrackPath()
public boolean shouldDirectWrite()
public void appendToConf(org.apache.hadoop.conf.Configuration conf)
conf - - Configuration object to which the options need to be addedCopyright © 2008–2020 Apache Software Foundation. All rights reserved.