DataSourceRegister Contract — Registering Data Source Format
DataSourceRegister
is a contract to register a DataSource provider under shortName
alias (so it can be looked up by the alias not its fully-qualified class name).
1 2 3 4 5 6 7 8 9 |
package org.apache.spark.sql.sources trait DataSourceRegister { def shortName(): String } |
Data Source Format Discovery — Registering Data Source By Short Name (Alias)
Caution
|
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