mirror of
https://github.com/apache/sqoop.git
synced 2025-05-11 22:41:50 +08:00
SQOOP-799 Change SqoopConnector interface to abstract class
(Jarek Jarcec Cecho)
This commit is contained in:
parent
46b50e3f68
commit
f55b132035
@ -30,7 +30,7 @@
|
|||||||
import org.apache.sqoop.model.MJob;
|
import org.apache.sqoop.model.MJob;
|
||||||
import org.apache.sqoop.validation.Validator;
|
import org.apache.sqoop.validation.Validator;
|
||||||
|
|
||||||
public class GenericJdbcConnector implements SqoopConnector {
|
public class GenericJdbcConnector extends SqoopConnector {
|
||||||
|
|
||||||
private static final Importer IMPORTER = new Importer(
|
private static final Importer IMPORTER = new Importer(
|
||||||
GenericJdbcImportInitializer.class,
|
GenericJdbcImportInitializer.class,
|
||||||
|
@ -28,40 +28,40 @@
|
|||||||
/**
|
/**
|
||||||
* Service provider interface for Sqoop Connectors.
|
* Service provider interface for Sqoop Connectors.
|
||||||
*/
|
*/
|
||||||
public interface SqoopConnector {
|
public abstract class SqoopConnector {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve connector version.
|
* Retrieve connector version.
|
||||||
*
|
*
|
||||||
* @return Version encoded as a string
|
* @return Version encoded as a string
|
||||||
*/
|
*/
|
||||||
String getVersion();
|
public abstract String getVersion();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param locale
|
* @param locale
|
||||||
* @return the resource bundle associated with the given locale.
|
* @return the resource bundle associated with the given locale.
|
||||||
*/
|
*/
|
||||||
ResourceBundle getBundle(Locale locale);
|
public abstract ResourceBundle getBundle(Locale locale);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Get connection configuration class
|
* @return Get connection configuration class
|
||||||
*/
|
*/
|
||||||
Class getConnectionConfigurationClass();
|
public abstract Class getConnectionConfigurationClass();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Get job configuration class for given type or null if not supported
|
* @return Get job configuration class for given type or null if not supported
|
||||||
*/
|
*/
|
||||||
Class getJobConfigurationClass(MJob.Type jobType);
|
public abstract Class getJobConfigurationClass(MJob.Type jobType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return an <tt>Importer</tt> that provides classes for performing import.
|
* @return an <tt>Importer</tt> that provides classes for performing import.
|
||||||
*/
|
*/
|
||||||
Importer getImporter();
|
public abstract Importer getImporter();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return an <tt>Exporter</tt> that provides classes for performing export.
|
* @return an <tt>Exporter</tt> that provides classes for performing export.
|
||||||
*/
|
*/
|
||||||
Exporter getExporter();
|
public abstract Exporter getExporter();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns validation object that Sqoop framework can use to validate user
|
* Returns validation object that Sqoop framework can use to validate user
|
||||||
@ -70,6 +70,6 @@ public interface SqoopConnector {
|
|||||||
*
|
*
|
||||||
* @return Validator object
|
* @return Validator object
|
||||||
*/
|
*/
|
||||||
Validator getValidator();
|
public abstract Validator getValidator();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user