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 |
Builder() |
private |
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 dataSizeLimit,
long heapSizeLimit) |
ScannerContext.Builder |
setTimeLimit(ScannerContext.LimitScope timeScope,
long timeLimit) |
ScannerContext.Builder |
setTrackMetrics(boolean trackMetrics) |
boolean keepProgress
boolean trackMetrics
ScannerContext.LimitFields limits
public ScannerContext.Builder setKeepProgress(boolean keepProgress)
public ScannerContext.Builder setTrackMetrics(boolean trackMetrics)
public ScannerContext.Builder setSizeLimit(ScannerContext.LimitScope sizeScope, long dataSizeLimit, long heapSizeLimit)
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.