public static final class ScannerContext.Builder extends Object
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
keepProgress |
(package private) ScannerContext.LimitFields |
limits |
(package private) boolean |
trackMetrics |
Modifier | Constructor and Description |
---|---|
private |
ScannerContext.Builder() |
private |
ScannerContext.Builder(boolean keepProgress) |
Modifier and Type | Method and Description |
---|---|
ScannerContext |
build() |
ScannerContext.Builder |
setBatchLimit(int batchLimit) |
ScannerContext.Builder |
setKeepProgress(boolean keepProgress) |
ScannerContext.Builder |
setSizeLimit(ScannerContext.LimitScope sizeScope,
long sizeLimit) |
ScannerContext.Builder |
setTimeLimit(ScannerContext.LimitScope timeScope,
long timeLimit) |
ScannerContext.Builder |
setTrackMetrics(boolean trackMetrics) |
boolean keepProgress
boolean trackMetrics
ScannerContext.LimitFields limits
private ScannerContext.Builder()
private ScannerContext.Builder(boolean keepProgress)
public ScannerContext.Builder setKeepProgress(boolean keepProgress)
public ScannerContext.Builder setTrackMetrics(boolean trackMetrics)
public ScannerContext.Builder setSizeLimit(ScannerContext.LimitScope sizeScope, long sizeLimit)
public ScannerContext.Builder setTimeLimit(ScannerContext.LimitScope timeScope, long timeLimit)
public ScannerContext.Builder setBatchLimit(int batchLimit)
public ScannerContext build()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.