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).

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

results matching ""

    No results matching ""