pyspark.sql.datasource.DataSource.name#

classmethod DataSource.name()[source]#

Returns a string represents the format name of this data source.

By default, it is the class name of the data source. It can be overridden to provide a customized short name for the data source.

Examples

>>> def name(cls):
...     return "my_data_source"