Class: Hyperion::Riak::MapReduceJs

Inherits:
Object
  • Object
show all
Defined in:
lib/hyperion/riak/map_reduce_js.rb

Class Method Summary collapse

Class Method Details

.countObject



28
29
30
# File 'lib/hyperion/riak/map_reduce_js.rb', line 28

def count
  template(:count).result
end

.filter(filters) ⇒ Object



8
9
10
# File 'lib/hyperion/riak/map_reduce_js.rb', line 8

def filter(filters)
  template(:filter).result(binding)
end

.limit(limit) ⇒ Object



24
25
26
# File 'lib/hyperion/riak/map_reduce_js.rb', line 24

def limit(limit)
  template(:limit).result(binding)
end

.offset(offset) ⇒ Object



16
17
18
# File 'lib/hyperion/riak/map_reduce_js.rb', line 16

def offset(offset)
  template(:offset).result(binding)
end

.pass_thruObject



32
33
34
# File 'lib/hyperion/riak/map_reduce_js.rb', line 32

def pass_thru
  template(:pass_thru).result
end

.sort(sorts) ⇒ Object



12
13
14
# File 'lib/hyperion/riak/map_reduce_js.rb', line 12

def sort(sorts)
  template(:sort).result(binding)
end