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

Public Member Functions

def __init__
 
def incr
 
def counter
 
def emit
 

Public Attributes

 job_context
 
 shard_context
 
 number
 
 attempt
 

Detailed Description

Context for map job.

Constructor & Destructor Documentation

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.

Member Function Documentation

def google.appengine.ext.mapreduce.api.map_job.map_job_context.SliceContext.counter (   self,
  counter_name,
  default = 0 
)
See shard_context.count.
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 
)
See shard_context.count.

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