5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-06 19:30:52 +08:00

SQOOP-1012: Sqoop2: Generic JDBC Connector should have one static instance of validator

(Vasanth kumar RJ via Jarek Jarcec Cecho)
This commit is contained in:
Jarek Jarcec Cecho 2013-05-02 22:37:02 -07:00
parent 01ffb2f428
commit dd3bfa3981

View File

@ -33,6 +33,8 @@
public class GenericJdbcConnector extends SqoopConnector {
private static GenericJdbcValidator genericJdbcValidator = new GenericJdbcValidator();
private static final Importer IMPORTER = new Importer(
GenericJdbcImportInitializer.class,
GenericJdbcImportPartitioner.class,
@ -91,8 +93,7 @@ public Exporter getExporter() {
@Override
public Validator getValidator() {
// TODO(jarcec): Cache this object eventually
return new GenericJdbcValidator();
return genericJdbcValidator;
}
@Override