public static final class MarkerTool.ScanArgsBuilder extends Object
| Constructor and Description |
|---|
ScanArgsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
MarkerTool.ScanArgs |
build()
Build the actual argument instance.
|
MarkerTool.ScanArgsBuilder |
withDoPurge(boolean d)
Should the markers be purged? This is also enabled when using the clean flag on the CLI.
|
MarkerTool.ScanArgsBuilder |
withLimit(int l)
Limit of files to scan; 0 for 'unlimited'.
|
MarkerTool.ScanArgsBuilder |
withMaxMarkerCount(int max)
Max marker count an audit must find (ignored on purge).
|
MarkerTool.ScanArgsBuilder |
withMinMarkerCount(int min)
Min marker count an audit must find (ignored on purge).
|
MarkerTool.ScanArgsBuilder |
withNonAuth(boolean b)
Consider only markers in non-authoritative paths as errors.
|
MarkerTool.ScanArgsBuilder |
withPath(org.apache.hadoop.fs.Path p)
Path to scan.
|
MarkerTool.ScanArgsBuilder |
withSourceFS(org.apache.hadoop.fs.FileSystem source)
Source FS; must be or wrap an S3A FS.
|
public MarkerTool.ScanArgsBuilder withSourceFS(org.apache.hadoop.fs.FileSystem source)
source - Source FileSystempublic MarkerTool.ScanArgsBuilder withPath(org.apache.hadoop.fs.Path p)
p - path to scanpublic MarkerTool.ScanArgsBuilder withDoPurge(boolean d)
d - set to purge if truepublic MarkerTool.ScanArgsBuilder withMinMarkerCount(int min)
min - Minimum Marker Count (default 0)public MarkerTool.ScanArgsBuilder withMaxMarkerCount(int max)
max - Maximum Marker Count (default 0)public MarkerTool.ScanArgsBuilder withLimit(int l)
l - Limit of files to scanpublic MarkerTool.ScanArgsBuilder withNonAuth(boolean b)
b - True if tool should only consider markers in non-authoritative pathspublic MarkerTool.ScanArgs build()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.