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) and ScanType.samplingScan(long, long) to construct.

  • Method Details

    • 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()
      Specified by:
      build in class ScanType
    • toString

      public String toString()
      Overrides:
      toString in class Object