public static class DistCpOptions.Builder
extends java.lang.Object
DistCpOptions.
This is designed to be the only public interface to create a
DistCpOptions object for users. It follows a simple Builder design
pattern.| Constructor | Description |
|---|---|
Builder(java.util.List<org.apache.hadoop.fs.Path> sourcePaths,
org.apache.hadoop.fs.Path targetPath) |
|
Builder(org.apache.hadoop.fs.Path sourceFileListing,
org.apache.hadoop.fs.Path targetPath) |
public Builder(java.util.List<org.apache.hadoop.fs.Path> sourcePaths,
org.apache.hadoop.fs.Path targetPath)
public Builder(org.apache.hadoop.fs.Path sourceFileListing,
org.apache.hadoop.fs.Path targetPath)
public DistCpOptions build()
public DistCpOptions.Builder withAtomicCommit(boolean newAtomicCommit)
public DistCpOptions.Builder withAtomicWorkPath(org.apache.hadoop.fs.Path newAtomicWorkPath)
public DistCpOptions.Builder withSyncFolder(boolean newSyncFolder)
public DistCpOptions.Builder withDeleteMissing(boolean newDeleteMissing)
public DistCpOptions.Builder withIgnoreFailures(boolean newIgnoreFailures)
public DistCpOptions.Builder withListingCheck(boolean newListingCheck)
public DistCpOptions.Builder withOverwrite(boolean newOverwrite)
public DistCpOptions.Builder withAppend(boolean newAppend)
@Deprecated public DistCpOptions.Builder withCRC(boolean newSkipCRC)
withSkipCRC(boolean) instead.newSkipCRC - whether to skip crc checkpublic DistCpOptions.Builder withSkipCRC(boolean newSkipCRC)
newSkipCRC - whether to skip crc checkpublic DistCpOptions.Builder withBlocking(boolean newBlocking)
public DistCpOptions.Builder withUseDiff(java.lang.String newFromSnapshot, java.lang.String newToSnapshot)
public DistCpOptions.Builder withUseRdiff(java.lang.String newFromSnapshot, java.lang.String newToSnapshot)
public DistCpOptions.Builder withFiltersFile(java.lang.String newFiletersFile)
public DistCpOptions.Builder withLogPath(org.apache.hadoop.fs.Path newLogPath)
public DistCpOptions.Builder withTrackMissing(org.apache.hadoop.fs.Path path)
public DistCpOptions.Builder withCopyStrategy(java.lang.String newCopyStrategy)
public DistCpOptions.Builder withMapBandwidth(float newMapBandwidth)
public DistCpOptions.Builder withNumListstatusThreads(int newNumListstatusThreads)
public DistCpOptions.Builder maxMaps(int newMaxMaps)
public DistCpOptions.Builder preserve(java.lang.String attributes)
public DistCpOptions.Builder preserve(DistCpOptions.FileAttribute attribute)
public DistCpOptions.Builder withBlocksPerChunk(int newBlocksPerChunk)
public DistCpOptions.Builder withCopyBufferSize(int newCopyBufferSize)
public DistCpOptions.Builder withVerboseLog(boolean newVerboseLog)
public DistCpOptions.Builder withDirectWrite(boolean newDirectWrite)
public DistCpOptions.Builder withUseIterator(boolean useItr)
public DistCpOptions.Builder withUpdateRoot(boolean updateRootAttrs)
public DistCpOptions.Builder withKeepLinks(boolean keepLinks)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.