public static class DistCpOptions.Builder extends 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 and Description |
|---|
Builder(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(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 withOverwrite(boolean newOverwrite)
public DistCpOptions.Builder withAppend(boolean newAppend)
public DistCpOptions.Builder withCRC(boolean newSkipCRC)
public DistCpOptions.Builder withBlocking(boolean newBlocking)
public DistCpOptions.Builder withUseDiff(String newFromSnapshot, String newToSnapshot)
public DistCpOptions.Builder withUseRdiff(String newFromSnapshot, String newToSnapshot)
public DistCpOptions.Builder withFiltersFile(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(String newCopyStrategy)
public DistCpOptions.Builder withMapBandwidth(float newMapBandwidth)
public DistCpOptions.Builder withNumListstatusThreads(int newNumListstatusThreads)
public DistCpOptions.Builder maxMaps(int newMaxMaps)
public DistCpOptions.Builder preserve(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)
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.