![]() |
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 | increment |
def | flush |
![]() | |
def | flush |
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.
def google.appengine.ext.mapreduce.context._Counters.__init__ | ( | self, | |
shard_state | |||
) |
Constructor. Args: shard_state: current mapreduce shard state as model.ShardState.
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.