@Private
@Evolving
public class DistCpContext
extends java.lang.Object
DistCpOptions and mutable runtime status.| Constructor | Description |
|---|---|
DistCpContext(DistCpOptions options) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
appendToConf(org.apache.hadoop.conf.Configuration conf) |
|
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() |
|
boolean |
isTargetPathExists() |
|
void |
setPreserveRawXattrs(boolean preserveRawXattrs) |
|
void |
setSourcePaths(java.util.List<org.apache.hadoop.fs.Path> sourcePaths) |
|
void |
setTargetPathExists(boolean targetPathExists) |
|
boolean |
shouldAppend() |
|
boolean |
shouldAtomicCommit() |
|
boolean |
shouldBlock() |
|
boolean |
shouldDeleteMissing() |
|
boolean |
shouldDirectWrite() |
|
boolean |
shouldIgnoreFailures() |
|
boolean |
shouldKeepLinks() |
|
boolean |
shouldListingCheck() |
|
boolean |
shouldOverwrite() |
|
boolean |
shouldPreserve(DistCpOptions.FileAttribute attribute) |
|
boolean |
shouldPreserveRawXattrs() |
|
boolean |
shouldSkipCRC() |
|
boolean |
shouldSyncFolder() |
|
boolean |
shouldUpdateRoot() |
|
boolean |
shouldUseDiff() |
|
boolean |
shouldUseIterator() |
|
boolean |
shouldUseRdiff() |
|
boolean |
shouldUseSnapshotDiff() |
|
boolean |
splitLargeFile() |
|
java.lang.String |
toString() |
public DistCpContext(DistCpOptions options)
public void setSourcePaths(java.util.List<org.apache.hadoop.fs.Path> sourcePaths)
public java.util.List<org.apache.hadoop.fs.Path> getSourcePaths()
options.public org.apache.hadoop.fs.Path getSourceFileListing()
public org.apache.hadoop.fs.Path getTargetPath()
public boolean shouldAtomicCommit()
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 final java.lang.String getFiltersFile()
public int getNumListstatusThreads()
public int getMaxMaps()
public float getMapBandwidth()
public java.util.Set<DistCpOptions.FileAttribute> getPreserveAttributes()
public boolean shouldPreserve(DistCpOptions.FileAttribute attribute)
public boolean shouldPreserveRawXattrs()
public void setPreserveRawXattrs(boolean preserveRawXattrs)
public org.apache.hadoop.fs.Path getAtomicWorkPath()
public org.apache.hadoop.fs.Path getLogPath()
public java.lang.String getCopyStrategy()
public int getBlocksPerChunk()
public boolean shouldUseIterator()
public boolean shouldUpdateRoot()
public final boolean splitLargeFile()
public int getCopyBufferSize()
public boolean shouldDirectWrite()
public void setTargetPathExists(boolean targetPathExists)
public boolean isTargetPathExists()
public final boolean shouldKeepLinks()
public void appendToConf(org.apache.hadoop.conf.Configuration conf)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.