This class is used to scan a given table range Can return rows either themselves or only their checksum
Returns true if there are unprocessed rows in the table range
# File lib/rubyrep/proxy_row_cursor.rb, line 24 def next? cursor.next? end
Returns the next row in cursor
# File lib/rubyrep/proxy_row_cursor.rb, line 29 def next_row cursor.next_row end
Returns for the next row
* a hash of :column_name => value pairs of the primary keys * checksum string for that row
# File lib/rubyrep/proxy_row_cursor.rb, line 36 def next_row_keys_and_checksum self.current_row = cursor.next_row keys = self.current_row.reject {|key, | not primary_key_names.include? key} checksum = Digest::SHA1.hexdigest(Marshal.dump(self.current_row)) return keys, checksum end
Generated with the Darkfish Rdoc Generator 2.