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

Static Public Member Functions

def to_dict
 

Static Public Attributes

dictionary ATTRIBUTES
 

Detailed Description

Root class for mapreduce.yaml.

File format:

mapreduce:
- name: <mapreduce_name>
  mapper:
    - input_reader: google.appengine.ext.mapreduce.DatastoreInputReader
    - handler: path_to_my.MapperFunction
    - params:
      - name: foo
        default: bar
      - name: blah
        default: stuff
    - params_validator: path_to_my.ValidatorFunction

Where
  mapreduce_name: The name of the mapreduce. Used for UI purposes.
  mapper_handler_spec: Full <module_name>.<function_name/class_name> of
    mapper handler. See MapreduceSpec class documentation for full handler
    specification.
  input_reader: Full <module_name>.<function_name/class_name> of the
    InputReader sub-class to use for the mapper job.
  params: A list of optional parameter names and optional default values
    that may be supplied or overridden by the user running the job.
  params_validator is full <module_name>.<function_name/class_name> of
    a callable to validate the mapper_params after they are input by the
    user running the job.

Member Function Documentation

def google.appengine.ext.mapreduce.status.MapReduceYaml.to_dict (   mapreduce_yaml)
static
Converts a MapReduceYaml file into a JSON-encodable dictionary.

For use in user-visible UI and internal methods for interfacing with
user code (like param validation). as a list

Args:
  mapreduce_yaml: The Pyton representation of the mapreduce.yaml document.

Returns:
  A list of configuration dictionaries.

Member Data Documentation

dictionary google.appengine.ext.mapreduce.status.MapReduceYaml.ATTRIBUTES
static
Initial value:
1 = {
2  "mapreduce": validation.Optional(validation.Repeated(MapreduceInfo))
3  }

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