# File lib/aws/dynamo_db/item_collection.rb, line 479
      def each(options = {}, &block)

        if conditions = options.delete(:where)
          return where(conditions).each(options, &block)
        end

        table.assert_schema!

        options = options.merge(:table_name => table.name)
        options[:scan_filter] = scan_filters unless scan_filters.empty?

        unless options[:count] or options[:item_data]
          options[:attributes_to_get] = [table.hash_key.name]
          options[:attributes_to_get] << table.range_key.name if
            table.composite_key?
        end

        super(options, &block)
      end