JSONOutputParser

class JSONOutputParser.JSONOutputParser(dataType=None, inputCol=None, outputCol=None, postProcessor=None)[source]

Bases: mmlspark.Utils.ComplexParamsMixin, pyspark.ml.util.JavaMLReadable, pyspark.ml.util.JavaMLWritable, pyspark.ml.wrapper.JavaTransformer

Parameters:
  • dataType (object) – format to parse the column to
  • inputCol (str) – The name of the input column
  • outputCol (str) – The name of the output column
  • postProcessor (object) – optional transformation to postprocess json output
getDataType()[source]
Returns:format to parse the column to
Return type:object
getInputCol()[source]
Returns:The name of the input column
Return type:str
static getJavaPackage()[source]

Returns package name String.

getOutputCol()[source]
Returns:The name of the output column
Return type:str
getPostProcessor()[source]
Returns:optional transformation to postprocess json output
Return type:object
classmethod read()[source]

Returns an MLReader instance for this class.

setDataType(value)[source]
Parameters:dataType (object) – format to parse the column to
setInputCol(value)[source]
Parameters:inputCol (str) – The name of the input column
setOutputCol(value)[source]
Parameters:outputCol (str) – The name of the output column
setParams(dataType=None, inputCol=None, outputCol=None, postProcessor=None)[source]

Set the (keyword only) parameters

Parameters:
  • dataType (object) – format to parse the column to
  • inputCol (str) – The name of the input column
  • outputCol (str) – The name of the output column
  • postProcessor (object) – optional transformation to postprocess json output
setPostProcessor(value)[source]
Parameters:postProcessor (object) – optional transformation to postprocess json output