models.reducer_info module¶
-
class
models.reducer_info.
ReducerInfo
(code=None, id=None, is_system_defined=None, jar_name=None, jar_path=None, language=None, name=None)[source]¶ Bases:
object
Implementation of the ‘ReducerInfo’ model.
Information about a reducer.
- Attributes:
code (string):The code of the reducer in the specified language. id (int): Reduced ID generated by system. Absent when user is creating
a new reducer. Mandatory for all other use cases.
is_system_defined (bool): Whether the mapper is system defined. jar_name (string): User can write their own mapper/reducer or upload
jar files containing mappers and reducers. If this reducer was part of a jar file, then this field will have the JAR name.
- jar_path (string): path of JAR in which this reducer was found. This
is applicable only when this reducer was uploaded via JAR.
language (int): Programming language used by the reducer. name (string): Name of the reducer.
-
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.