def __ProcessNamespace(self, namespace):

    all_query = datastore.Query(namespace=namespace, _app=self.app_id)


    for entity in all_query.Run():
      self.found_non_empty_namespace |= (namespace != '')
      proto = entity.ToPb()
      proto_size = len(proto.SerializeToString())

      if entity.key().kind() in stats._DATASTORE_STATS_CLASSES_BY_KIND:



        stat_kind = stats._DATASTORE_STATS_CLASSES_BY_KIND[entity.key().kind()]

        self.old_stat_keys.append(entity.key())
        self.__AggregateTotal(proto_size, entity.key(), proto, namespace,
                              stat_kind)
      else:
        self.__ProcessUserEntity(proto_size, entity.key(), proto, namespace)
Serializes this _QueuedOpCode.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/datastore/datastore_stats_generator.py/DatastoreStatsProcessor.__ProcessNamespace--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/jqueue/__init__.py/_QueuedOpCode.Serialize