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._Counters Class Reference
Inheritance diagram for google.appengine.ext.mapreduce.context._Counters:
google.appengine.ext.mapreduce.context.Pool

Public Member Functions

def __init__
 
def increment
 
def flush
 
- Public Member Functions inherited from google.appengine.ext.mapreduce.context.Pool
def flush
 

Detailed Description

Regulates access to counters.

Counters Pool is a str to int map. It is saved as part of ShardState so it
is flushed when ShardState commits to datastore successfully.

Constructor & Destructor Documentation

def google.appengine.ext.mapreduce.context._Counters.__init__ (   self,
  shard_state 
)
Constructor.

Args:
  shard_state: current mapreduce shard state as model.ShardState.

Member Function Documentation

def google.appengine.ext.mapreduce.context._Counters.flush (   self)
Flush unsaved counter values.
def google.appengine.ext.mapreduce.context._Counters.increment (   self,
  counter_name,
  delta = 1 
)
Increment counter value.

Args:
  counter_name: name of the counter as string.
  delta: increment delta as int.

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