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

Public Member Functions

def __init__
 
def Put
 
def flush
 

Public Attributes

 max_entity_count
 
 puts
 

Static Public Attributes

string POOL_NAME = 'put_pool'
 

Detailed Description

A trimmed copy of the MutationPool class.

Properties:
  puts: a list of entities to put to datastore.
  max_entity_count: maximum number of entities before flushing it to db.

Constructor & Destructor Documentation

def google.appengine.ext.datastore_admin.utils.PutPool.__init__ (   self,
  max_entity_count = context.MAX_ENTITY_COUNT 
)
Constructor.

Args:
  max_entity_count: maximum number of entities before flushing it to db.

Member Function Documentation

def google.appengine.ext.datastore_admin.utils.PutPool.flush (   self)
Flush all puts to datastore.
def google.appengine.ext.datastore_admin.utils.PutPool.Put (   self,
  entity 
)
Registers entity to put to datastore.

Args:
  entity: The EntityProto for the entity to be put.

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