Skip to content

DataSourceRegister

[[shortName]] DataSourceRegister is a <> to register a DataSource provider under shortName alias (so it can be looked up by the alias not its fully-qualified class name).

[[contract]] [source, scala]


package org.apache.spark.sql.sources

trait DataSourceRegister { def shortName(): String }


Data Source Format Discovery -- Registering Data Source By Short Name (Alias)

Important

FIXME Describe how Java's ServiceLoader works to find all DataSourceRegister provider classes on the CLASSPATH.

Any DataSourceRegister has to register itself in META-INF/services/org.apache.spark.sql.sources.DataSourceRegister file to...FIXME


Last update: 2020-12-29