public class FileSystemObjectStore extends Object implements eu.dnetlib.data.objectstore.modular.connector.ObjectStore
| Constructor and Description |
|---|
FileSystemObjectStore(String identifier,
String interpretation,
String basePath,
com.mongodb.client.MongoCollection<com.mongodb.DBObject> mongoMetadata,
String baseURI)
Instantiates a new file system object store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteObject(String objectId) |
eu.dnetlib.enabling.resultset.ResultSetListener |
deliver(Long from,
Long until) |
eu.dnetlib.enabling.resultset.ResultSetListener |
deliverIds(Iterable<String> ids) |
eu.dnetlib.data.objectstore.rmi.ObjectStoreFile |
deliverObject(String objectId) |
boolean |
dropContent() |
boolean |
existIDStartsWith(String startId) |
int |
feed(Iterable<eu.dnetlib.data.objectstore.modular.ObjectStoreRecord> records,
boolean incremental) |
int |
feedMetadataRecord(Iterable<eu.dnetlib.data.objectstore.rmi.MetadataObjectRecord> records,
boolean incremental) |
String |
feedObjectRecord(eu.dnetlib.data.objectstore.modular.ObjectStoreRecord record) |
String |
getBasePath() |
String |
getBaseURI()
Gets the base uri.
|
String |
getId() |
String |
getInterpretation() |
String |
getObject(String recordId) |
int |
getSize() |
String |
toString() |
public FileSystemObjectStore(String identifier, String interpretation, String basePath, com.mongodb.client.MongoCollection<com.mongodb.DBObject> mongoMetadata, String baseURI)
identifier - the identifierinterpretation - the interpretationbasePath - the base pathmongoMetadata - the mongo metadatabaseURI - the base uripublic String getId()
getId in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreObjectStore.getId()public String getInterpretation()
getInterpretation in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreObjectStore.getInterpretation()public int feed(Iterable<eu.dnetlib.data.objectstore.modular.ObjectStoreRecord> records, boolean incremental) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
feed in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStore.feed(java.lang.Iterable, boolean)public int feedMetadataRecord(Iterable<eu.dnetlib.data.objectstore.rmi.MetadataObjectRecord> records, boolean incremental) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
feedMetadataRecord in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionThis method handles the case of web crawl files and other cases when the metadata in mdstores are also the objects to put into the objectstores.public String feedObjectRecord(eu.dnetlib.data.objectstore.modular.ObjectStoreRecord record) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
feedObjectRecord in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStore.feedObjectRecord(eu.dnetlib.data.objectstore.modular.ObjectStoreRecord)public eu.dnetlib.enabling.resultset.ResultSetListener deliver(Long from, Long until) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
deliver in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStore.deliver(java.lang.Long, java.lang.Long)public eu.dnetlib.enabling.resultset.ResultSetListener deliverIds(Iterable<String> ids) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
deliverIds in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStore.deliverIds(java.lang.Iterable)public eu.dnetlib.data.objectstore.rmi.ObjectStoreFile deliverObject(String objectId) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
deliverObject in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStore.deliverObject(java.lang.String)public int getSize()
throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
getSize in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStore.getSize()public void deleteObject(String objectId) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
deleteObject in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStore.deleteObject(java.lang.String)public String getObject(String recordId) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
getObject in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStore.getObject(java.lang.String)public boolean existIDStartsWith(String startId) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
existIDStartsWith in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStore.existIDStartsWith(java.lang.String)public boolean dropContent()
throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
dropContent in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic String getBaseURI()
public String getBasePath()
Copyright © 2018. All rights reserved.