inference_schema/parameter_types/spark_parameter_type.py
def _convert_MapType_to_swagger(cls, map_type):
        """
        Converts an ArrayType into a swagger valid type

        :param map_type:
        :type map_type: MapType
        :return: the converted swagger type.
        :rtype: dict
        """
        if not isinstance(map_type, MapType):
            raise TypeError("Invalid data type to convert: expected only valid pyspark.sql.types.MapType instances")
        value_schema = cls._convert_spark_schema_to_swagger(map_type.valueType)
        schema = {'type': 'object', 'additionalProperties': value_schema}
        return schema

        Converts an ArrayType into a swagger valid type

        :param map_type:
        :type map_type: MapType
        :return: the converted swagger type.
        :rtype: dict
        
Converts an ArrayType into a swagger valid type
Converts an ArrayType into a swagger valid type
def _convert_MapType_to_swagger(cls, map_type):
        if not isinstance(map_type, MapType):
            raise TypeError("Invalid data type to convert: expected only valid pyspark.sql.types.MapType instances")
        value_schema = cls._convert_spark_schema_to_swagger(map_type.valueType)
        schema = {'type': 'object', 'additionalProperties': value_schema}
        return schema
def _convert_MapType_to_swagger ( cls , map_type ) : if not isinstance ( map_type , MapType ) : raise TypeError ( "Invalid data type to convert: expected only valid pyspark.sql.types.MapType instances" ) value_schema = cls . _convert_spark_schema_to_swagger ( map_type . valueType ) schema = { 'type' : 'object' , 'additionalProperties' : value_schema } return schema
Converts an ArrayType into a swagger valid type
Converts an ArrayType into a swagger valid type
"""
        Converts an ArrayType into a swagger valid type

        :param map_type:
        :type map_type: MapType
        :return: the converted swagger type.
        :rtype: dict
        """
the converted swagger type.
the converted swagger type .
dict
cls
map_type
None