Method: Cequel::Record::RecordSet#from

Defined in:
lib/cequel/record/record_set.rb

#from(start_key) ⇒ RecordSet

Restrict records to those whose value in the first unscoped primary key column are greater than or equal to the given start key.

Parameters:

  • start_key

    the inclusive lower bound for values in the key column

Returns:

  • (RecordSet)

    record set with the lower bound applied

See Also:

Since:

  • 1.0.0



412
413
414
415
416
417
418
419
# File 'lib/cequel/record/record_set.rb', line 412

def from(start_key)
  unless partition_specified?
    fail IllegalQuery,
         "Can't construct exclusive range on partition key " \
         "#{range_key_name}"
  end
  scoped(lower_bound: bound(true, true, start_key))
end