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')
  
      offset = min(offset, self.__count - self.__offset)
      limited_offset = min(offset, _MAX_QUERY_OFFSET)
      if limited_offset:
        self.__offset += limited_offset
        result.set_skipped_results(limited_offset)
  
      if offset == limited_offset and count:
  
        if count > _MAXIMUM_RESULTS:
          count = _MAXIMUM_RESULTS
        results = self.__results[self.__offset:self.__offset + count]
        count = len(results)
        self.__offset += count
  
  
  
  
  
        result.result_list().extend(
            LoadEntity(entity, self.keys_only, self.property_names)
            for entity in results)
  
      if self.__offset:
  
        self.__last_result = self.__results[self.__offset - 1]
  
      result.set_more_results(self.__offset < self.__count)
      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' ) offset = min ( offset , self . __count - self . __offset ) limited_offset = min ( offset , _MAX_QUERY_OFFSET ) if limited_offset : self . __offset += limited_offset result . set_skipped_results ( limited_offset ) if offset == limited_offset and count : if count > _MAXIMUM_RESULTS : count = _MAXIMUM_RESULTS results = self . __results [ self . __offset : self . __offset + count ] count = len ( results ) self . __offset += count result . result_list ( ) . extend ( LoadEntity ( entity , self . keys_only , self . property_names ) for entity in results ) if self . __offset : self . __last_result = self . __results [ self . __offset - 1 ] result . set_more_results ( self . __offset < self . __count ) 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
      """