public class S3ObjectStore extends Object implements eu.dnetlib.data.objectstore.modular.connector.ObjectStore
| Constructor and Description |
|---|
S3ObjectStore(String identifier,
String interpretation,
String s3AccessKey,
String s3SecretKey,
String s3EndPoint,
String objectStoreBucket,
com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection,
String basePath) |
| 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> iterable,
boolean upsert) |
int |
feedMetadataRecord(Iterable<eu.dnetlib.data.objectstore.rmi.MetadataObjectRecord> iterable,
boolean b) |
String |
feedObjectRecord(eu.dnetlib.data.objectstore.modular.ObjectStoreRecord objectStoreRecord) |
String |
getId() |
String |
getInterpretation() |
String |
getObject(String objectId) |
int |
getSize() |
public S3ObjectStore(String identifier, String interpretation, String s3AccessKey, String s3SecretKey, String s3EndPoint, String objectStoreBucket, com.mongodb.client.MongoCollection<org.bson.Document> mongoCollection, String basePath) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic String getId()
getId in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic String getInterpretation()
getInterpretation in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic int feed(Iterable<eu.dnetlib.data.objectstore.modular.ObjectStoreRecord> iterable, boolean upsert) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
feed in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic int feedMetadataRecord(Iterable<eu.dnetlib.data.objectstore.rmi.MetadataObjectRecord> iterable, boolean b) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
feedMetadataRecord in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic String feedObjectRecord(eu.dnetlib.data.objectstore.modular.ObjectStoreRecord objectStoreRecord) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
feedObjectRecord in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic 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.ObjectStoreServiceExceptionpublic 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.ObjectStoreServiceExceptionpublic 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.ObjectStoreServiceExceptionpublic int getSize()
throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
getSize in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic 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.ObjectStoreServiceExceptionpublic String getObject(String objectId) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
getObject in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic 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.ObjectStoreServiceExceptionpublic boolean dropContent()
throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
dropContent in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionCopyright © 2020. All rights reserved.