original_docstring: Populates a QueryResult with this cursor and the given number of results.
  
      Args:
        result: datastore_pb.QueryResult
        count: integer of how many results to return
        offset: integer of how many results to skip
        compile: boolean, whether we are compiling this query
        first_result: whether the query result is the first for this query
      
docstring: Populates a QueryResult with this cursor and the given number of results.
docstring_tokens: Populates a QueryResult with this cursor and the given number of results .
code: def PopulateQueryResult(self, result, count, offset,
                            compile=False, first_result=False):
      """Populates a QueryResult with this cursor and the given number of results.
  
      Args:
        result: datastore_pb.QueryResult
        count: integer of how many results to return
        offset: integer of how many results to skip
        compile: boolean, whether we are compiling this query
        first_result: whether the query result is the first for this query
      """
      Check(offset >= 0, 'Offset must be >= 0')
      skipped = 0
      try:
        limited_offset = min(offset, _MAX_QUERY_OFFSET)
        while skipped < limited_offset:
          self._Next()
          skipped += 1
  
  
  
  
  
  
  
        if skipped == offset:
          if count > _MAXIMUM_RESULTS:
            count = _MAXIMUM_RESULTS
          while count > 0:
            result.result_list().append(LoadEntity(self._Next(), self.keys_only,
                                                   self.property_names))
            count -= 1
  
        self._GetNext()
      except StopIteration:
        pass
  
      result.set_more_results(not self.__done)
      result.set_skipped_results(skipped)
      self._PopulateResultMetadata(result, compile,
                                   first_result, self.__last_result)
code_tokens: def PopulateQueryResult ( self , result , count , offset , compile = False , first_result = False ) : Check ( offset >= 0 , 'Offset must be >= 0' ) skipped = 0 try : limited_offset = min ( offset , _MAX_QUERY_OFFSET ) while skipped < limited_offset : self . _Next ( ) skipped += 1 if skipped == offset : if count > _MAXIMUM_RESULTS : count = _MAXIMUM_RESULTS while count > 0 : result . result_list ( ) . append ( LoadEntity ( self . _Next ( ) , self . keys_only , self . property_names ) ) count -= 1 self . _GetNext ( ) except StopIteration : pass result . set_more_results ( not self . __done ) result . set_skipped_results ( skipped ) self . _PopulateResultMetadata ( result , compile , first_result , self . __last_result )
short_docstring: Populates a QueryResult with this cursor and the given number of results.
short_docstring_tokens: Populates a QueryResult with this cursor and the given number of results .
comment: """Populates a QueryResult with this cursor and the given number of results.
  
      Args:
        result: datastore_pb.QueryResult
        count: integer of how many results to return
        offset: integer of how many results to skip
        compile: boolean, whether we are compiling this query
        first_result: whether the query result is the first for this query
      """