Packages

t

org.apache.spark.sql.sources

DataSourceRegister

trait DataSourceRegister extends AnyRef

Data sources should implement this trait so that they can register an alias to their data source. This allows users to give the data source alias as the format type over the fully qualified class name.

A new instance of this class will be instantiated each time a DDL call is made.

Annotations
@Stable()
Source
interfaces.scala
Since

1.5.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DataSourceRegister
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def shortName(): String

    The string that represents the format that this data source provider uses.

    The string that represents the format that this data source provider uses. This is overridden by children to provide a nice alias for the data source. For example:

    override def shortName(): String = "parquet"
    Since

    1.5.0