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.
1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 |
# File 'lib/couchbase/options.rb', line 1797 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?
1769 1770 1771 |
# File 'lib/couchbase/options.rb', line 1769 def debug @debug end |
#end_key ⇒ #to_json?
1758 1759 1760 |
# File 'lib/couchbase/options.rb', line 1758 def end_key @end_key end |
#end_key_doc_id ⇒ String?
1760 1761 1762 |
# File 'lib/couchbase/options.rb', line 1760 def end_key_doc_id @end_key_doc_id end |
#group ⇒ Boolean?
1762 1763 1764 |
# File 'lib/couchbase/options.rb', line 1762 def group @group end |
#group_level ⇒ Integer?
1763 1764 1765 |
# File 'lib/couchbase/options.rb', line 1763 def group_level @group_level end |
#inclusive_end ⇒ Boolean?
1761 1762 1763 |
# File 'lib/couchbase/options.rb', line 1761 def inclusive_end @inclusive_end end |
#key ⇒ #to_json?
1764 1765 1766 |
# File 'lib/couchbase/options.rb', line 1764 def key @key end |
#keys ⇒ Array<#to_json>?
1765 1766 1767 |
# File 'lib/couchbase/options.rb', line 1765 def keys @keys end |
#limit ⇒ Integer
1756 1757 1758 |
# File 'lib/couchbase/options.rb', line 1756 def limit @limit end |
#namespace ⇒ Symbol
1754 1755 1756 |
# File 'lib/couchbase/options.rb', line 1754 def namespace @namespace end |
#on_error ⇒ Symbol?
1768 1769 1770 |
# File 'lib/couchbase/options.rb', line 1768 def on_error @on_error end |
#order ⇒ Symbol?
1766 1767 1768 |
# File 'lib/couchbase/options.rb', line 1766 def order @order end |
#reduce ⇒ Boolean?
1767 1768 1769 |
# File 'lib/couchbase/options.rb', line 1767 def reduce @reduce end |
#scan_consistency ⇒ Symbol
1753 1754 1755 |
# File 'lib/couchbase/options.rb', line 1753 def scan_consistency @scan_consistency end |
#skip ⇒ Integer
1755 1756 1757 |
# File 'lib/couchbase/options.rb', line 1755 def skip @skip end |
#start_key ⇒ #to_json?
1757 1758 1759 |
# File 'lib/couchbase/options.rb', line 1757 def start_key @start_key end |
#start_key_doc_id ⇒ String?
1759 1760 1761 |
# File 'lib/couchbase/options.rb', line 1759 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
1844 1845 1846 |
# File 'lib/couchbase/options.rb', line 1844 def raw(key, value) @raw_parameters[key] = JSON.generate(value) end |