@Public
@Evolving
public final class DistCpOptions
extends java.lang.Object
DistCpOptions.Builder class
This class is immutable.| Modifier and Type | Class | Description |
|---|---|---|
static class |
DistCpOptions.Builder |
The builder of the
DistCpOptions. |
static class |
DistCpOptions.FileAttribute |
File attributes for preserve.
|
| Modifier and Type | Field | Description |
|---|---|---|
static int |
MAX_NUM_LISTSTATUS_THREADS |
| Modifier and Type | Method | Description |
|---|---|---|
void |
appendToConf(org.apache.hadoop.conf.Configuration conf) |
Add options to configuration.
|
org.apache.hadoop.fs.Path |
getAtomicWorkPath() |
|
int |
getBlocksPerChunk() |
|
int |
getCopyBufferSize() |
|
java.lang.String |
getCopyStrategy() |
|
java.lang.String |
getFiltersFile() |
|
java.lang.String |
getFromSnapshot() |
|
org.apache.hadoop.fs.Path |
getLogPath() |
|
float |
getMapBandwidth() |
|
int |
getMaxMaps() |
|
int |
getNumListstatusThreads() |
|
java.util.Set<DistCpOptions.FileAttribute> |
getPreserveAttributes() |
|
org.apache.hadoop.fs.Path |
getSourceFileListing() |
|
java.util.List<org.apache.hadoop.fs.Path> |
getSourcePaths() |
|
org.apache.hadoop.fs.Path |
getTargetPath() |
|
java.lang.String |
getToSnapshot() |
|
org.apache.hadoop.fs.Path |
getTrackPath() |
|
boolean |
shouldAppend() |
|
boolean |
shouldAtomicCommit() |
|
boolean |
shouldBlock() |
|
boolean |
shouldDeleteMissing() |
|
boolean |
shouldDirectWrite() |
|
boolean |
shouldIgnoreFailures() |
|
boolean |
shouldKeepLinks() |
|
boolean |
shouldListingCheck() |
|
boolean |
shouldOverwrite() |
|
boolean |
shouldPreserve(DistCpOptions.FileAttribute attribute) |
Checks if the input attribute should be preserved or not.
|
boolean |
shouldSkipCRC() |
|
boolean |
shouldSyncFolder() |
|
boolean |
shouldUpdateRoot() |
|
boolean |
shouldUseDiff() |
|
boolean |
shouldUseIterator() |
|
boolean |
shouldUseRdiff() |
|
boolean |
shouldUseSnapshotDiff() |
|
boolean |
shouldVerboseLog() |
|
java.lang.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 java.util.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 shouldListingCheck()
public boolean shouldOverwrite()
public boolean shouldAppend()
public boolean shouldSkipCRC()
public boolean shouldBlock()
public boolean shouldUseDiff()
public boolean shouldUseRdiff()
public boolean shouldUseSnapshotDiff()
public java.lang.String getFromSnapshot()
public java.lang.String getToSnapshot()
public java.lang.String getFiltersFile()
public org.apache.hadoop.fs.Path getLogPath()
public java.lang.String getCopyStrategy()
public int getNumListstatusThreads()
public int getMaxMaps()
public float getMapBandwidth()
public java.util.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 boolean shouldUseIterator()
public boolean shouldUpdateRoot()
public boolean shouldKeepLinks()
public void appendToConf(org.apache.hadoop.conf.Configuration conf)
conf - - Configuration object to which the options need to be addedpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.