class NoSE::Backend::Backend::LimitStatementStep
Perform a client-side limit of the result set size
Public Class Methods
new(_client, _fields, _conditions, step, _next_step, _prev_step)
click to toggle source
# File lib/nose/backend.rb, line 281 def initialize(_client, _fields, _conditions, step, _next_step, _prev_step) @limit = step.limit end
Public Instance Methods
process(_conditions, results)
click to toggle source
Remove results past the limit @return [Array<Hash>]
# File lib/nose/backend.rb, line 288 def process(_conditions, results) results[0..@limit - 1] end