def GenerateUncompactedItems(self, max_reversed_results=0,
                               timestamp=None):
    if self.IsAttributeSet(self.Schema.DATA):
      freeze_timestamp = timestamp or rdfvalue.RDFDatetime().Now()
      results = []
      for _, value, _ in data_store.DB.ResolvePrefix(
          self.urn, self.Schema.DATA.predicate, token=self.token,
          timestamp=(0, freeze_timestamp)):

        if results is not None:
          results.append(self.Schema.DATA(value).payload)
          if max_reversed_results and len(results) > max_reversed_results:
            for result in results:
              yield result
            results = None
        else:
          yield self.Schema.DATA(value).payload

      if results is not None:
        for result in reversed(results):
          yield result
dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/collects.py/PackedVersionedCollection.GenerateUncompactedItems/original