models.output_spec module

class models.output_spec.OutputSpec(num_reduce_shards=None, output_dir=None, partition_id=None, reduce_output_prefix=None, view_box_id=None, view_name=None)[source]

Bases: object

Implementation of the ‘OutputSpec’ model.

Output specification for the mapreduce.

Attributes:

num_reduce_shards (int): Number of reduce shards. output_dir (string): Name of output directory. partition_id (long|int): Partition id where output will go. reduce_output_prefix (string): Prefix of the reduce output files. File

names will be: ${reduce_output_prefix}-00000-of-00100 if num_reduce_shards=100 This name can contain some path components. e.g. “awb_results/run1” is a valid value. output_dir is deprecated.

view_box_id (long|int): Viewbox id where the output will go. view_name (string): Name of the view where output will go. This will

be filled up by yoda.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.