Method: Aws::DynamoDB::Types::QueryInput#scan_index_forward

Defined in:
lib/aws-sdk-dynamodb/types.rb

#scan_index_forwardBoolean

Specifies the order for index traversal: If ‘true` (default), the traversal is performed in ascending order; if `false`, the traversal is performed in descending order.

Items with the same partition key value are stored in sorted order by sort key. If the sort key data type is Number, the results are stored in numeric order. For type String, the results are stored in order of UTF-8 bytes. For type Binary, DynamoDB treats each byte of the binary data as unsigned.

If ‘ScanIndexForward` is `true`, DynamoDB returns the results in the order in which they are stored (by sort key value). This is the default behavior. If `ScanIndexForward` is `false`, DynamoDB reads the results in reverse order by sort key value, and then returns the results to the client.

Returns:

  • (Boolean)


6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
# File 'lib/aws-sdk-dynamodb/types.rb', line 6950

class QueryInput < Struct.new(
  :table_name,
  :index_name,
  :select,
  :attributes_to_get,
  :limit,
  :consistent_read,
  :key_conditions,
  :query_filter,
  :conditional_operator,
  :scan_index_forward,
  :exclusive_start_key,
  :return_consumed_capacity,
  :projection_expression,
  :filter_expression,
  :key_condition_expression,
  :expression_attribute_names,
  :expression_attribute_values)
  SENSITIVE = []
  include Aws::Structure
end