SimpleHTTPTransformer¶
-
class
SimpleHTTPTransformer.SimpleHTTPTransformer(concurrency=1, concurrentTimeout=100.0, flattenOutputBatches=False, handlingStrategy='advanced', inputCol=None, inputParser=None, miniBatcher=None, outputCol=None, outputParser=None)[source]¶ Bases:
mmlspark.Utils.ComplexParamsMixin,pyspark.ml.util.JavaMLReadable,pyspark.ml.util.JavaMLWritable,pyspark.ml.wrapper.JavaTransformerParameters: - concurrency (int) – max number of concurrent calls (default: 1)
- concurrentTimeout (double) – max number seconds to wait on futures if concurrency >= 1 (default: 100.0)
- flattenOutputBatches (bool) – whether to flatten the output batches (default: false)
- handlingStrategy (str) – Which strategy to use when handling requests (default: advanced)
- inputCol (str) – The name of the input column
- inputParser (object) – format to parse the column to (default: JSONInputParser_832c92a9153e)
- miniBatcher (object) – Minibatcher to use
- outputCol (str) – The name of the output column
- outputParser (object) – format to parse the column to
-
getConcurrentTimeout()[source]¶ Returns: max number seconds to wait on futures if concurrency >= 1 (default: 100.0) Return type: double
-
getFlattenOutputBatches()[source]¶ Returns: whether to flatten the output batches (default: false) Return type: bool
-
getHandlingStrategy()[source]¶ Returns: Which strategy to use when handling requests (default: advanced) Return type: str
-
getInputParser()[source]¶ Returns: format to parse the column to (default: JSONInputParser_832c92a9153e) Return type: object
-
setConcurrency(value)[source]¶ Parameters: concurrency (int) – max number of concurrent calls (default: 1)
-
setConcurrentTimeout(value)[source]¶ Parameters: concurrentTimeout (double) – max number seconds to wait on futures if concurrency >= 1 (default: 100.0)
-
setFlattenOutputBatches(value)[source]¶ Parameters: flattenOutputBatches (bool) – whether to flatten the output batches (default: false)
-
setHandlingStrategy(value)[source]¶ Parameters: handlingStrategy (str) – Which strategy to use when handling requests (default: advanced)
-
setInputParser(value)[source]¶ Parameters: inputParser (object) – format to parse the column to (default: JSONInputParser_832c92a9153e)
-
setParams(concurrency=1, concurrentTimeout=100.0, flattenOutputBatches=False, handlingStrategy='advanced', inputCol=None, inputParser=None, miniBatcher=None, outputCol=None, outputParser=None)[source]¶ Set the (keyword only) parameters
Parameters: - concurrency (int) – max number of concurrent calls (default: 1)
- concurrentTimeout (double) – max number seconds to wait on futures if concurrency >= 1 (default: 100.0)
- flattenOutputBatches (bool) – whether to flatten the output batches (default: false)
- handlingStrategy (str) – Which strategy to use when handling requests (default: advanced)
- inputCol (str) – The name of the input column
- inputParser (object) – format to parse the column to (default: JSONInputParser_832c92a9153e)
- miniBatcher (object) – Minibatcher to use
- outputCol (str) – The name of the output column
- outputParser (object) – format to parse the column to