JSONInputParser

class JSONInputParser.JSONInputParser(headers={}, inputCol=None, method='POST', outputCol=None, url=None)[source]

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

Parameters:
  • headers (dict) – headers of the request (default: Map())
  • inputCol (str) – The name of the input column
  • method (str) – method to use for request, (PUT, POST, PATCH) (default: POST)
  • outputCol (str) – The name of the output column
  • url (str) – Url of the service
getHeaders()[source]
Returns:headers of the request (default: Map())
Return type:dict
getInputCol()[source]
Returns:The name of the input column
Return type:str
static getJavaPackage()[source]

Returns package name String.

getMethod()[source]
Returns:method to use for request, (PUT, POST, PATCH) (default: POST)
Return type:str
getOutputCol()[source]
Returns:The name of the output column
Return type:str
getUrl()[source]
Returns:Url of the service
Return type:str
classmethod read()[source]

Returns an MLReader instance for this class.

setHeaders(value)[source]
Parameters:headers (dict) – headers of the request (default: Map())
setInputCol(value)[source]
Parameters:inputCol (str) – The name of the input column
setMethod(value)[source]
Parameters:method (str) – method to use for request, (PUT, POST, PATCH) (default: POST)
setOutputCol(value)[source]
Parameters:outputCol (str) – The name of the output column
setParams(headers={}, inputCol=None, method='POST', outputCol=None, url=None)[source]

Set the (keyword only) parameters

Parameters:
  • headers (dict) – headers of the request (default: Map())
  • inputCol (str) – The name of the input column
  • method (str) – method to use for request, (PUT, POST, PATCH) (default: POST)
  • outputCol (str) – The name of the output column
  • url (str) – Url of the service
setUrl(value)[source]
Parameters:url (str) – Url of the service