Class: Couchbase::SamplingScan
- Inherits:
-
Object
- Object
- Couchbase::SamplingScan
- Defined in:
- lib/couchbase/key_value_scan.rb,
/code/couchbase-ruby-client/lib/couchbase/key_value_scan.rb
Overview
A sampling scan performs a scan that randomly selects documents up to a configured limit
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(limit, seed = nil) ⇒ SamplingScan
constructor
Creates an instance of a SamplingScan scan type.
Constructor Details
#initialize(limit, seed = nil) ⇒ SamplingScan
Creates an instance of a SamplingScan scan type
105 106 107 108 |
# File 'lib/couchbase/key_value_scan.rb', line 105 def initialize(limit, seed = nil) @limit = limit @seed = seed end |
Instance Attribute Details
#limit ⇒ Integer
97 98 99 |
# File 'lib/couchbase/key_value_scan.rb', line 97 def limit @limit end |
#seed ⇒ Integer?
98 99 100 |
# File 'lib/couchbase/key_value_scan.rb', line 98 def seed @seed end |