![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | StoreEntities |
def | ResultsComplete |
def | AllEntities |
![]() | |
def | __init__ |
def | ThreadComplete |
Public Attributes | |
complete | |
existing_count | |
count | |
sort_key_from_entity | |
![]() | |
db_filename | |
primary_conn | |
primary_thread | |
secondary_conn | |
secondary_thread | |
operation_count | |
commit_periodicity | |
existing_table | |
insert_cursor | |
update_cursor | |
Additional Inherited Members | |
![]() | |
string | SIGNATURE_TABLE_NAME = 'bulkloader_database_signature' |
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.
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.
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.