Package org.apache.hadoop.fs.s3a.tools
Class MarkerTool.ScanArgsBuilder
java.lang.Object
org.apache.hadoop.fs.s3a.tools.MarkerTool.ScanArgsBuilder
- Enclosing class:
- MarkerTool
Builder of the scan arguments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the actual argument instance.withDoPurge(boolean d) Should the markers be purged?withLimit(int l) Limit of files to scan; 0 for 'unlimited'.withMaxMarkerCount(int max) Max marker count an audit must find (ignored on purge).withMinMarkerCount(int min) Min marker count an audit must find (ignored on purge).withPath(org.apache.hadoop.fs.Path p) Path to scan.withSourceFS(org.apache.hadoop.fs.FileSystem source) Source FS; must be or wrap an S3A FS.
-
Constructor Details
-
ScanArgsBuilder
public ScanArgsBuilder()
-
-
Method Details
-
withSourceFS
Source FS; must be or wrap an S3A FS.- Parameters:
source- Source FileSystem- Returns:
- the builder class after scanning source FS
-
withPath
Path to scan.- Parameters:
p- path to scan- Returns:
- builder class for method chaining
-
withDoPurge
Should the markers be purged? This is also enabled when using the clean flag on the CLI.- Parameters:
d- set to purge if true- Returns:
- builder class for method chaining
-
withMinMarkerCount
Min marker count an audit must find (ignored on purge).- Parameters:
min- Minimum Marker Count (default 0)- Returns:
- builder class for method chaining
-
withMaxMarkerCount
Max marker count an audit must find (ignored on purge).- Parameters:
max- Maximum Marker Count (default 0)- Returns:
- builder class for method chaining
-
withLimit
Limit of files to scan; 0 for 'unlimited'.- Parameters:
l- Limit of files to scan- Returns:
- builder class for method chaining
-
build
Build the actual argument instance.- Returns:
- the arguments to pass in
-