def process_query_result_if_first(self, query_result):
    if not self.__was_first_result_processed:
      self.__was_first_result_processed = True
      self.__keys_only = query_result.keys_only()
      if query_result.has_compiled_query():
        self.__compiled_query = query_result.compiled_query
      else:
        self.__compiled_query = None
      try:
        self.__index_list = [self.__conn.adapter.pb_to_index(index_pb)
                             for index_pb in query_result.index_list()]
      except __HOLE__:

        self.__index_list = None
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/datastore/datastore_query.py/_BatchShared.process_query_result_if_first