Class: Couchbase::ScanTerm

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/key_value_scan.rb

Overview

A scan term used to specify the bounds of a range scan

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(term, exclusive: false) ⇒ ScanTerm

Creates an instance of a ScanTerm

Parameters:

  • term (String)

    the key pattern of this term

  • exclusive (Boolean) (defaults to: false)

    specifies if this term is excluded while scanning, the bounds are included by default



27
28
29
30
# File 'lib/couchbase/key_value_scan.rb', line 27

def initialize(term, exclusive: false)
  @term = term
  @exclusive = exclusive
end

Instance Attribute Details

#exclusiveBoolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/couchbase/key_value_scan.rb', line 19

def exclusive
  @exclusive
end

#termScanTerm

Returns:



18
19
20
# File 'lib/couchbase/key_value_scan.rb', line 18

def term
  @term
end