Module: Influxdb::Arel::Clauses::Expressions
- Included in:
- SelectClause, WhereClause
- Defined in:
- lib/influxdb/arel/clauses/expressions.rb
Instance Method Summary collapse
- #bottom(expr, size) ⇒ Object
- #count(expr) ⇒ Object
- #derivative(expr) ⇒ Object
- #difference(expr) ⇒ Object
- #distinct(expr) ⇒ Object
- #first(expr) ⇒ Object
- #histogram(expr, bucket_size = nil) ⇒ Object
- #last(expr) ⇒ Object
- #max(expr) ⇒ Object
- #mean(expr) ⇒ Object
- #median(expr) ⇒ Object
- #min(expr) ⇒ Object
- #mode(expr) ⇒ Object
- #percentile(expr, nth) ⇒ Object
- #stddev(expr) ⇒ Object
- #sum(expr) ⇒ Object
- #top(expr, size) ⇒ Object
Instance Method Details
#bottom(expr, size) ⇒ Object
69 70 71 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 69 def bottom(expr, size) function_node(:Bottom, expr, size) end |
#count(expr) ⇒ Object
5 6 7 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 5 def count(expr) function_node(:Count, expr) end |
#derivative(expr) ⇒ Object
45 46 47 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 45 def derivative(expr) function_node(:Derivative, expr) end |
#difference(expr) ⇒ Object
61 62 63 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 61 def difference(expr) function_node(:Difference, expr) end |
#distinct(expr) ⇒ Object
33 34 35 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 33 def distinct(expr) function_node(:Distinct, expr) end |
#first(expr) ⇒ Object
53 54 55 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 53 def first(expr) function_node(:First, expr) end |
#histogram(expr, bucket_size = nil) ⇒ Object
41 42 43 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 41 def histogram(expr, bucket_size = nil) function_node(:Histogram, expr, bucket_size || 1) end |
#last(expr) ⇒ Object
57 58 59 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 57 def last(expr) function_node(:Last, expr) end |
#max(expr) ⇒ Object
13 14 15 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 13 def max(expr) function_node(:Max, expr) end |
#mean(expr) ⇒ Object
21 22 23 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 21 def mean(expr) function_node(:Mean, expr) end |
#median(expr) ⇒ Object
29 30 31 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 29 def median(expr) function_node(:Median, expr) end |
#min(expr) ⇒ Object
17 18 19 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 17 def min(expr) function_node(:Min, expr) end |
#mode(expr) ⇒ Object
25 26 27 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 25 def mode(expr) function_node(:Mode, expr) end |
#percentile(expr, nth) ⇒ Object
37 38 39 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 37 def percentile(expr, nth) function_node(:Percentile, expr, nth) end |
#stddev(expr) ⇒ Object
49 50 51 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 49 def stddev(expr) function_node(:Stddev, expr) end |
#sum(expr) ⇒ Object
9 10 11 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 9 def sum(expr) function_node(:Sum, expr) end |
#top(expr, size) ⇒ Object
65 66 67 |
# File 'lib/influxdb/arel/clauses/expressions.rb', line 65 def top(expr, size) function_node(:Top, expr, size) end |