1 |
29686
|
sandro.lab
|
package eu.dnetlib.functionality.index.feed;
|
2 |
|
|
|
3 |
|
|
import java.util.Map;
|
4 |
|
|
|
5 |
|
|
import com.google.common.base.Function;
|
6 |
|
|
|
7 |
|
|
import eu.dnetlib.functionality.index.model.Any.ValueType;
|
8 |
|
|
import eu.dnetlib.functionality.index.model.document.IndexDocument;
|
9 |
|
|
import eu.dnetlib.functionality.index.utils.MetadataReference;
|
10 |
|
|
|
11 |
|
|
/**
|
12 |
|
|
* A factory for creating DocumentMapper objects.
|
13 |
|
|
*/
|
14 |
|
|
public interface DocumentMapperFactory {
|
15 |
|
|
|
16 |
|
|
/**
|
17 |
|
|
* Gets the record mapper.
|
18 |
|
|
*
|
19 |
|
|
* @param schema
|
20 |
|
|
* the schema
|
21 |
|
|
* @param mdRef
|
22 |
|
|
* the md ref
|
23 |
|
|
* @param dsId
|
24 |
|
|
* the ds id
|
25 |
|
|
* @param version
|
26 |
|
|
* the version
|
27 |
|
|
* @return the record mapper
|
28 |
|
|
*/
|
29 |
|
|
public Function<String, IndexDocument> getRecordMapper(final Map<String, ValueType> schema,
|
30 |
|
|
final MetadataReference mdRef,
|
31 |
|
|
final String dsId,
|
32 |
|
|
final String version);
|
33 |
|
|
|
34 |
|
|
}
|