def next_record(self, record):
     print("%s\t\t\t\t%s" % ("Key", encode_key(record.key)))
     print("%s\t\t\t\t%s" % ("Bytes", record.bytes))
     print("%s\t\t\t\t%s" % ("Type", record.type))
     if record.type in ('set', 'list', 'sortedset', 'hash'):
         print("%s\t\t\t%s" % ("Encoding", record.encoding))
         print("%s\t\t%s" % ("Number of Elements", record.size))
         print("%s\t%s" % ("Length of Largest Element", record.len_largest_element))
 def next_record(self, record):
     print("%s\t\t\t\t%s" % ("Key", encode_key(record.key)))
     print("%s\t\t\t\t%s" % ("Bytes", record.bytes))
     print("%s\t\t\t\t%s" % ("Type", record.type))
     if record.type in ('set', 'list', 'sortedset', 'hash'):
         print("%s\t\t\t%s" % ("Encoding", record.encoding))
         print("%s\t\t%s" % ("Number of Elements", record.size))
         print("%s\t%s" %
               ("Length of Largest Element", record.len_largest_element))
Exemple #3
0
 def next_record(self, record) :
     self._out.write("%d,%s,%s,%d,%s,%d,%d\n" % (record.database, record.type, encode_key(record.key), 
                                              record.bytes, record.encoding, record.size, record.len_largest_element))