@API(value=INTERNAL) public class ByteScanLimiterFactory extends Object
ByteScanLimiter
s.Modifier and Type | Method and Description |
---|---|
static ByteScanLimiter |
enforce(long limit)
Creates a limiter that enforces a maximum number of bytes that can be processed in a single scan.
|
static ByteScanLimiter |
tracking()
Creates a limiter that tracks the number of bytes that has been scanned, but does not impose a limit.
|
static ByteScanLimiter |
untracked()
Creates a limiter that neither enforces nor tracks the number of bytes scanned.
|
public static ByteScanLimiter enforce(long limit)
limit
- the maximum number of bytes that can be processed in a single scanpublic static ByteScanLimiter tracking()
public static ByteScanLimiter untracked()