|
| job_context |
|
| shard_context |
|
| number |
|
| attempt |
|
def google.appengine.ext.mapreduce.api.map_job.map_job_context.SliceContext.__init__ |
( |
|
self, |
|
|
|
shard_context, |
|
|
|
shard_state, |
|
|
|
tstate |
|
) |
| |
Init.
The signature of __init__ is subject to change.
Read only properties:
job_context: JobContext object.
shard_context: ShardContext object.
number: int. slice number. 0 indexed.
attempt: int. The current attempt at executing this slice.
starting at 1.
Args:
shard_context: map_job.JobConfig.
shard_state: model.ShardState.
tstate: model.TransientShardstate.
def google.appengine.ext.mapreduce.api.map_job.map_job_context.SliceContext.counter |
( |
|
self, |
|
|
|
counter_name, |
|
|
|
default = 0 |
|
) |
| |
def google.appengine.ext.mapreduce.api.map_job.map_job_context.SliceContext.emit |
( |
|
self, |
|
|
|
value |
|
) |
| |
Emits a value to output writer.
Args:
value: a value of type expected by the output writer.
def google.appengine.ext.mapreduce.api.map_job.map_job_context.SliceContext.incr |
( |
|
self, |
|
|
|
counter_name, |
|
|
|
delta = 1 |
|
) |
| |
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/ext/mapreduce/api/map_job/map_job_context.py