Package com.couchbase.client.java.kv
Class SamplingScan
- java.lang.Object
-
- com.couchbase.client.java.kv.ScanType
-
- com.couchbase.client.java.kv.SamplingScan
-
@Volatile public class SamplingScan extends ScanType
Performs a KV range scan using random sampling.Use
ScanType.samplingScan(long)
andScanType.samplingScan(long, long)
to construct.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SamplingScan.Built
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SamplingScan.Built
build()
long
limit()
Returns the limit set for this sampling scan.Optional<Long>
seed()
Returns the seed set for this sampling scan.-
Methods inherited from class com.couchbase.client.java.kv.ScanType
prefixScan, rangeScan, rangeScan, samplingScan, samplingScan
-
-
-
-
Method Detail
-
limit
public long limit()
Returns the limit set for this sampling scan.- Returns:
- the limit set for this sampling scan.
-
seed
public Optional<Long> seed()
Returns the seed set for this sampling scan.- Returns:
- the seed set for this sampling scan.
-
build
@Internal public SamplingScan.Built build()
-
-