![]() |
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 | to_json |
def | from_json |
def | validate |
def | split_input |
def | __iter__ |
def | __str__ |
![]() | |
def | __iter__ |
def | next |
def | from_json |
def | to_json |
def | split_input |
def | validate |
![]() | |
def | to_json_str |
def | from_json_str |
Public Attributes | |
ns_range | |
Static Public Attributes | |
string | NAMESPACE_RANGE_PARAM = "namespace_range" |
string | BATCH_SIZE_PARAM = "batch_size" |
![]() | |
expand_parameters = False | |
string | NAMESPACE_PARAM = "namespace" |
string | NAMESPACES_PARAM = "namespaces" |
An input reader to iterate over namespaces. This reader yields namespace names as string. It will always produce only one shard.
def google.appengine.ext.mapreduce.input_readers.NamespaceInputReader.from_json | ( | cls, | |
json | |||
) |
Create new DatastoreInputReader from the json, encoded by to_json. Args: json: json map representation of DatastoreInputReader. Returns: an instance of DatastoreInputReader with all data deserialized from json.
def google.appengine.ext.mapreduce.input_readers.NamespaceInputReader.split_input | ( | cls, | |
mapper_spec | |||
) |
Returns a list of input readers for the input spec. Args: mapper_spec: The MapperSpec for this InputReader. Returns: A list of InputReaders.
def google.appengine.ext.mapreduce.input_readers.NamespaceInputReader.to_json | ( | self | ) |
Serializes all the data in this query range into json form. Returns: all the data in json-compatible map.
def google.appengine.ext.mapreduce.input_readers.NamespaceInputReader.validate | ( | cls, | |
mapper_spec | |||
) |
Validates mapper spec. Args: mapper_spec: The MapperSpec for this InputReader. Raises: BadReaderParamsError: required parameters are missing or invalid.