App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.ext.mapreduce.context.Pool Class Reference
Inheritance diagram for google.appengine.ext.mapreduce.context.Pool:
google.appengine.ext.mapreduce.context._Counters google.appengine.ext.mapreduce.context._MutationPool google.appengine.ext.mapreduce.output_writers._FilePool google.appengine.ext.mapreduce.output_writers.RecordsPool

Public Member Functions

def flush
 

Detailed Description

Mutation pool accumulates changes to perform them in patch.

Any Pool subclass should not be public. Instead, Pool should define an
operation.Operation class and let user uses that. For example, in a map
function, user can do:

def map(foo):
  yield OperationOnMyPool(any_argument)

Since Operation is a callable object, Mapreduce library will invoke
any Operation object that is yielded with context.Context instance.
The operation object can then access MyPool from Context.get_pool.

Member Function Documentation

def google.appengine.ext.mapreduce.context.Pool.flush (   self)
Flush all changes.

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