def ApplyPluginToMultiTypeCollection(plugin, output_collection):
 for chunk in plugin.Start():
  (yield chunk)
 for stored_type_name in sorted(output_collection.ListStoredTypes()):
  stored_cls = rdfvalue.RDFValue.classes[stored_type_name]
  def GetValues():
   for (timestamp, value) in output_collection.ScanByType(stored_type_name):
    _ = timestamp
    (yield value)
  for chunk in plugin.ProcessValues(stored_cls, GetValues):
   (yield chunk)
 for chunk in plugin.Finish():
  (yield chunk)

def ApplyPluginToMultiTypeCollection ( plugin , output_collection ) : for chunk in plugin . Start ( ) : ( yield chunk ) for stored_type_name in sorted ( output_collection . ListStoredTypes ( ) ) : stored_cls = rdfvalue . RDFValue . classes [ stored_type_name ] def GetValues ( ) : for ( timestamp , value ) in output_collection . ScanByType ( stored_type_name ) : _ = timestamp ( yield value ) for chunk in plugin . ProcessValues ( stored_cls , GetValues ) : ( yield chunk ) for chunk in plugin . Finish ( ) : ( yield chunk )
applies instant output plugin to a multi-type collection .