def QueryRange(client, table, callback):
 def _OnQuery(retry_cb, count, result):
  for item in result.items:
   if options.options.col_names:
    item = dict([(k, v) for (k, v) in item.items() if (k in options.options.col_names)])
   pprint.pprint(item)
  if result.last_key:
   retry_cb(result.last_key, (count + len(result.items)))
  else:
   return callback(('queried %d items' % count))
 def _Query(last_key=None, count=0):
  client.Query(table.name, options.options.hash_key, None, partial(_OnQuery, _Query, count), None, limit=100, excl_start_key=last_key)
 _Query()

def QueryRange ( client , table , callback ) : def _OnQuery ( retry_cb , count , result ) : for item in result . items : if options . options . col_names : item = dict ( [ ( k , v ) for ( k , v ) in item . items ( ) if ( k in options . options . col_names ) ] ) pprint . pprint ( item ) if result . last_key : retry_cb ( result . last_key , ( count + len ( result . items ) ) ) else : return callback ( ( 'queried %d items' % count ) ) def _Query ( last_key = None , count = 0 ) : client . Query ( table . name , options . options . hash_key , None , partial ( _OnQuery , _Query , count ) , None , limit = 100 , excl_start_key = last_key ) _Query ( )
queries the contents of a range identified by --hash_key .