App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.ext.bulkload.bulkloader_config.GenericExporter Class Reference
Inheritance diagram for google.appengine.ext.bulkload.bulkloader_config.GenericExporter:

Public Member Functions

def __init__
 
def initialize
 
def output_entities
 
def finalize
 

Public Attributes

 export_recorder
 
 entity_to_dict
 
 kind
 
 sort_key_from_entity
 
 calculate_sort_key_from_entity
 
 bulkload_state
 

Detailed Description

Implements bulkloader.Exporter interface and delegates.

This will delegate to the passed in entity_to_dict method and the
methods on the export_recorder which are in the ConnectorInterface.

Constructor & Destructor Documentation

def google.appengine.ext.bulkload.bulkloader_config.GenericExporter.__init__ (   self,
  export_recorder,
  entity_to_dict,
  kind,
  sort_key_from_entity 
)
Constructor.

Args:
  export_recorder: Object which writes results, an implementation of
  ConnectorInterface.
  entity_to_dict: Method which converts a single entity to a neutral dict.
  kind: Kind to identify this object to the bulkloader.
  sort_key_from_entity: Optional method to return a sort key for each
  entity. This key will be used to sort the downloaded entities before
  passing them to eneity_to_dict.

Member Function Documentation

def google.appengine.ext.bulkload.bulkloader_config.GenericExporter.finalize (   self)
Performs finalization actions after the download completes.
def google.appengine.ext.bulkload.bulkloader_config.GenericExporter.initialize (   self,
  filename,
  exporter_opts 
)
Performs initialization and validation of the output file.

Args:
  filename: The string given as the --filename flag argument.
  exporter_opts: The string given as the --exporter_opts flag argument.
def google.appengine.ext.bulkload.bulkloader_config.GenericExporter.output_entities (   self,
  entity_iterator 
)
Outputs the downloaded entities.

Args:
  entity_iterator: An iterator that yields the downloaded entities
in sorted order.

The documentation for this class was generated from the following file: