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.tools.bulkloader.ResultDatabase Class Reference
Inheritance diagram for google.appengine.tools.bulkloader.ResultDatabase:
google.appengine.tools.bulkloader._Database

Public Member Functions

def __init__
 
def StoreEntities
 
def ResultsComplete
 
def AllEntities
 
- Public Member Functions inherited from google.appengine.tools.bulkloader._Database
def __init__
 
def ThreadComplete
 

Public Attributes

 complete
 
 existing_count
 
 count
 
 sort_key_from_entity
 
- Public Attributes inherited from google.appengine.tools.bulkloader._Database
 db_filename
 
 primary_conn
 
 primary_thread
 
 secondary_conn
 
 secondary_thread
 
 operation_count
 
 commit_periodicity
 
 existing_table
 
 insert_cursor
 
 update_cursor
 

Additional Inherited Members

- Static Public Attributes inherited from google.appengine.tools.bulkloader._Database
string SIGNATURE_TABLE_NAME = 'bulkloader_database_signature'
 

Detailed Description

Persistently record all the entities downloaded during an export.

The entities are held in the database by their unique datastore key
in order to avoid duplication if an export is restarted.

Constructor & Destructor Documentation

def google.appengine.tools.bulkloader.ResultDatabase.__init__ (   self,
  db_filename,
  signature,
  commit_periodicity = 1,
  exporter = None 
)
Initialize a ResultDatabase object.

Args:
  db_filename: The name of the SQLite database to use.
  signature: A string identifying the important invocation options,
used to make sure we are not using an old database.
  commit_periodicity: How many operations to perform between commits.
  exporter: Exporter instance; if exporter.calculate_sort_key_from_entity
is true then exporter.sort_key_from_entity(entity) will be called.

Member Function Documentation

def google.appengine.tools.bulkloader.ResultDatabase.AllEntities (   self)
Yields all pairs of (id, value) from the result table.
def google.appengine.tools.bulkloader.ResultDatabase.ResultsComplete (   self)
Marks the result database as containing complete results.
def google.appengine.tools.bulkloader.ResultDatabase.StoreEntities (   self,
  keys,
  entities 
)
Store a group of entities in the result database.

Args:
  keys: A list of entity keys.
  entities: A list of entities.

Returns:
  The number of new entities stored in the result database.

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