Project

General

Profile

1
package eu.dnetlib.data.mdstore.modular;
2

    
3
import java.util.Map;
4

    
5
import eu.dnetlib.miscutils.datetime.DateUtils;
6

    
7
/**
8
 * Parses a mdrecord and extracts the minimum information (like id, date etc) which is necessary for the mdstoring
9
 * process.
10
 * 
11
 * @author marko
12
 * 
13
 */
14
public interface RecordParser {
15

    
16
	Map<String, String> parseRecord(String record);
17

    
18
	void setTimestamp(long ts);
19

    
20
	default long getTimestamp() {
21
		return DateUtils.now();
22
	}
23

    
24
}
(9-9/12)