Project

General

Profile

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

    
3
import java.util.List;
4
import java.util.Map;
5

    
6
import eu.dnetlib.data.mdstore.DocumentNotFoundException;
7
import eu.dnetlib.data.mdstore.MDStoreServiceException;
8
import eu.dnetlib.data.mdstore.modular.MDFormatDescription;
9
import eu.dnetlib.enabling.resultset.ResultSetListener;
10

    
11
public interface MDStore {
12

    
13
	String getId();
14

    
15
	String getFormat();
16

    
17
	String getInterpretation();
18

    
19
	String getLayout();
20

    
21
	void truncate();
22

    
23
	int feed(Iterable<String> records, boolean incremental);
24

    
25
    int feed(Iterable<String> records, boolean incremental, List<MDFormatDescription> mdformats);
26

    
27
	ResultSetListener deliver(String from, String until, String recordFilter) throws MDStoreServiceException;
28

    
29
	ResultSetListener deliverIds(String from, String until, String recordFilter) throws MDStoreServiceException;
30

    
31
	Iterable<String> iterate();
32

    
33
	int getSize();
34

    
35
	void deleteRecord(String recordId);
36

    
37
	String getRecord(String recordId) throws DocumentNotFoundException;
38

    
39
    List<String> deliver(String mdId, int pageSize, int offset, Map<String, String> queryParam);
40
}
(1-1/8)