Class: Couchbase::Options::View
- Defined in:
- lib/couchbase/options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/options.rb more...
Overview
Options for Cluster#view_query
Instance Attribute Summary collapse
- #debug ⇒ Boolean?
- #end_key ⇒ #to_json?
- #end_key_doc_id ⇒ String?
- #group ⇒ Boolean?
- #group_level ⇒ Integer?
- #inclusive_end ⇒ Boolean?
- #key ⇒ #to_json?
- #keys ⇒ Array<#to_json>?
- #limit ⇒ Integer
- #namespace ⇒ Symbol
- #on_error ⇒ Symbol?
- #order ⇒ Symbol?
- #reduce ⇒ Boolean?
- #scan_consistency ⇒ Symbol
- #skip ⇒ Integer
- #start_key ⇒ #to_json?
- #start_key_doc_id ⇒ String?
Attributes inherited from Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(scan_consistency: :not_bounded, namespace: :production, skip: nil, limit: nil, start_key: nil, end_key: nil, start_key_doc_id: nil, end_key_doc_id: nil, inclusive_end: nil, group: nil, group_level: nil, key: nil, keys: nil, order: nil, reduce: nil, on_error: nil, debug: false, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ View
constructor
A new instance of View.
-
#raw(key, value) ⇒ Object
Allows providing custom JSON key/value pairs for advanced usage.
Constructor Details
#initialize(scan_consistency: :not_bounded, namespace: :production, skip: nil, limit: nil, start_key: nil, end_key: nil, start_key_doc_id: nil, end_key_doc_id: nil, inclusive_end: nil, group: nil, group_level: nil, key: nil, keys: nil, order: nil, reduce: nil, on_error: nil, debug: false, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ View
Returns a new instance of View.
1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 |
# File 'lib/couchbase/options.rb', line 1725 def initialize(scan_consistency: :not_bounded, namespace: :production, skip: nil, limit: nil, start_key: nil, end_key: nil, start_key_doc_id: nil, end_key_doc_id: nil, inclusive_end: nil, group: nil, group_level: nil, key: nil, keys: nil, order: nil, reduce: nil, on_error: nil, debug: false, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span) @scan_consistency = scan_consistency @namespace = namespace @skip = skip @limit = limit @start_key = start_key @end_key = end_key @start_key_doc_id = start_key_doc_id @end_key_doc_id = end_key_doc_id @inclusive_end = inclusive_end @group = group @group_level = group_level @key = key @keys = keys @order = order @reduce = reduce @on_error = on_error @debug = debug yield self if block_given? end |
Instance Attribute Details
#debug ⇒ Boolean?
1697 1698 1699 |
# File 'lib/couchbase/options.rb', line 1697 def debug @debug end |
#end_key ⇒ #to_json?
1686 1687 1688 |
# File 'lib/couchbase/options.rb', line 1686 def end_key @end_key end |
#end_key_doc_id ⇒ String?
1688 1689 1690 |
# File 'lib/couchbase/options.rb', line 1688 def end_key_doc_id @end_key_doc_id end |
#group ⇒ Boolean?
1690 1691 1692 |
# File 'lib/couchbase/options.rb', line 1690 def group @group end |
#group_level ⇒ Integer?
1691 1692 1693 |
# File 'lib/couchbase/options.rb', line 1691 def group_level @group_level end |
#inclusive_end ⇒ Boolean?
1689 1690 1691 |
# File 'lib/couchbase/options.rb', line 1689 def inclusive_end @inclusive_end end |
#key ⇒ #to_json?
1692 1693 1694 |
# File 'lib/couchbase/options.rb', line 1692 def key @key end |
#keys ⇒ Array<#to_json>?
1693 1694 1695 |
# File 'lib/couchbase/options.rb', line 1693 def keys @keys end |
#limit ⇒ Integer
1684 1685 1686 |
# File 'lib/couchbase/options.rb', line 1684 def limit @limit end |
#namespace ⇒ Symbol
1682 1683 1684 |
# File 'lib/couchbase/options.rb', line 1682 def namespace @namespace end |
#on_error ⇒ Symbol?
1696 1697 1698 |
# File 'lib/couchbase/options.rb', line 1696 def on_error @on_error end |
#order ⇒ Symbol?
1694 1695 1696 |
# File 'lib/couchbase/options.rb', line 1694 def order @order end |
#reduce ⇒ Boolean?
1695 1696 1697 |
# File 'lib/couchbase/options.rb', line 1695 def reduce @reduce end |
#scan_consistency ⇒ Symbol
1681 1682 1683 |
# File 'lib/couchbase/options.rb', line 1681 def scan_consistency @scan_consistency end |
#skip ⇒ Integer
1683 1684 1685 |
# File 'lib/couchbase/options.rb', line 1683 def skip @skip end |
#start_key ⇒ #to_json?
1685 1686 1687 |
# File 'lib/couchbase/options.rb', line 1685 def start_key @start_key end |
#start_key_doc_id ⇒ String?
1687 1688 1689 |
# File 'lib/couchbase/options.rb', line 1687 def start_key_doc_id @start_key_doc_id end |
Instance Method Details
#raw(key, value) ⇒ Object
Allows providing custom JSON key/value pairs for advanced usage
1772 1773 1774 |
# File 'lib/couchbase/options.rb', line 1772 def raw(key, value) @raw_parameters[key] = JSON.generate(value) end |