Revision 43245
Added by Claudio Atzori almost 8 years ago
OAIStoreServiceImpl.java | ||
---|---|---|
13 | 13 |
import eu.dnetlib.rmi.common.ResultSet; |
14 | 14 |
import eu.dnetlib.rmi.provision.MDFInfo; |
15 | 15 |
import eu.dnetlib.rmi.provision.OAIStoreService; |
16 |
import eu.dnetlib.utils.MetadataReference; |
|
16 | 17 |
import org.springframework.beans.factory.annotation.Autowired; |
17 | 18 |
import org.springframework.beans.factory.annotation.Required; |
18 | 19 |
|
... | ... | |
35 | 36 |
private ResultSetClient resultSetClient; |
36 | 37 |
|
37 | 38 |
@Override |
38 |
public void feed(final ResultSet<String> recordsEpr, final MDFInfo mdfInfo, final String dbName) {
|
|
39 |
public void feed(final ResultSet<String> recordsEpr, final MetadataReference mdfInfo, final String dbName) {
|
|
39 | 40 |
this.feed(recordsEpr, mdfInfo, "", dbName); |
40 | 41 |
} |
41 | 42 |
|
42 | 43 |
@Override |
43 |
public void feed(final ResultSet<String> recordsEpr, final MDFInfo mdfInfo, final String recordSource, final String dbName) {
|
|
44 |
public void feed(final ResultSet<String> recordsEpr, final MetadataReference mdfInfo, final String recordSource, final String dbName) {
|
|
44 | 45 |
final Iterable<String> iter = this.resultSetClient.iter(recordsEpr, String.class); |
45 | 46 |
this.synchronizer.synchronize(iter, mdfInfo, recordSource, dbName, false, null, null); |
46 | 47 |
} |
Also available in: Unified diff
moved MetadataReference class in common package, it will be used by both index service and oai store service