public static <S extends BaseConfig, W extends DeepJobConfig> W initConfig(S config, W deepJobConfig) { if (config instanceof ExtractorConfig) { deepJobConfig.initialize((ExtractorConfig) config); } else if (deepJobConfig.getClass().isAssignableFrom(config.getClass())) { deepJobConfig = (W) ((W) config).initialize(); } else { deepJobConfig.initialize((DeepJobConfig) config); } return deepJobConfig; }
public static <S extends BaseConfig, W extends DeepJobConfig> W initConfig(S config, W deepJobConfig) { if (config instanceof ExtractorConfig) { deepJobConfig.initialize((ExtractorConfig) config); } else if (deepJobConfig.getClass().isAssignableFrom(config.getClass())) { deepJobConfig = (W) ((W) config).initialize(); } else { deepJobConfig.initialize((DeepJobConfig) config); } return deepJobConfig; }
public S initialize(DeepJobConfig deepJobConfig){ if(deepJobConfig instanceof DeepJobConfig) { this.catalog = deepJobConfig.getCatalog(); this.table = deepJobConfig.getTable(); this.username = deepJobConfig.getUsername(); this.password = deepJobConfig.getPassword(); this.filters = deepJobConfig.getFilters(); this.inputColumns = deepJobConfig.getInputColumns(); this.port = deepJobConfig.getPort(); this.host = deepJobConfig.getHostList(); this.extractorImplClass = deepJobConfig.getExtractorImplClass(); this.extractorImplClassName = deepJobConfig.getExtractorImplClassName(); this.entityClass = deepJobConfig.getEntityClass(); }else{ return (S) deepJobConfig.initialize(); } return (S) this.initialize(); }
public S initialize(DeepJobConfig deepJobConfig){ if(deepJobConfig instanceof DeepJobConfig) { this.catalog = deepJobConfig.getCatalog(); this.table = deepJobConfig.getTable(); this.username = deepJobConfig.getUsername(); this.password = deepJobConfig.getPassword(); this.filters = deepJobConfig.getFilters(); this.inputColumns = deepJobConfig.getInputColumns(); this.port = deepJobConfig.getPort(); this.host = deepJobConfig.getHostList(); this.extractorImplClass = deepJobConfig.getExtractorImplClass(); this.extractorImplClassName = deepJobConfig.getExtractorImplClassName(); this.entityClass = deepJobConfig.getEntityClass(); }else{ return (S) deepJobConfig.initialize(); } return (S) this.initialize(); }
@Override public CassandraDeepJobConfig<T> initialize(ExtractorConfig extractorConfig) { super.initialize(extractorConfig);
cellsDeepJobConfig.initialize(extractorConfig);