class AWS::DynamoDB::ItemCollection::FilterBuilder


table.items.where(:path).begins_with(“users/”)
Provides a convenient syntax for expressing scan filters.

def begins_with value

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • value (String) -- The value to compare against.
def begins_with value
  @items.with_filter(attribute, "BEGINS_WITH", value)
end

def between min, max

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • max (String, Numeric) -- The maximum value.
  • min (String, Numeric) -- The minimum value.
def between min, max
  @items.with_filter(attribute, "BETWEEN", min, max)
end

def contains value

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • value (String, Numeric) -- The value to compare against.
def contains value
  @items.with_filter(attribute, "CONTAINS", value)
end

def does_not_contain value

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • value (String, Numeric) -- The value to compare against.
def does_not_contain value
  @items.with_filter(attribute, "NOT_CONTAINS", value)
end

def equals value

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • value (String, Numeric) -- The value to compare against.
def equals value
  @items.with_filter(attribute, "EQ", value)
end

def greater_than value

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • value (String, Numeric) -- The value to compare against.
def greater_than value
  @items.with_filter(attribute, "GT", value)
end

def gte value

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • value (String, Numeric) -- The value to compare against.
def gte value
  @items.with_filter(attribute, "GE", value)
end

def in *values

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • values (Array) -- The values to compare
def in *values
  @items.with_filter(attribute, "IN", *values)
end

def initialize(items, attribute)

Other tags:
    Private: -
def initialize(items, attribute)
  @items = items
  @attribute = attribute
end

def is_null

Returns:
  • (ItemCollection) - A new item collection filtered by
def is_null
  @items.with_filter(attribute, "NULL")
end

def less_than value

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • value (String, Numeric) -- The value to compare against.
def less_than value
  @items.with_filter(attribute, "LT", value)
end

def lte value

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • value (String, Numeric) -- The value to compare against.
def lte value
  @items.with_filter(attribute, "LE", value)
end

def not_equal_to value

Returns:
  • (ItemCollection) - A new item collection filtered by

Parameters:
  • value (String, Numeric) -- The value to compare against.
def not_equal_to value
  @items.with_filter(attribute, "NE", value)
end

def not_null

Returns:
  • (ItemCollection) - A new item collection filtered by
def not_null
  @items.with_filter(attribute, "NOT_NULL")
end