public class GridFSObjectStore extends Object implements eu.dnetlib.data.objectstore.modular.connector.ObjectStore
| Constructor and Description |
|---|
GridFSObjectStore(String id,
com.mongodb.gridfs.GridFS collection,
boolean upsert)
Instantiates a new grid fs 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 |
getBaseURI()
Gets the base uri.
|
String |
getId() |
String |
getInterpretation() |
com.mongodb.DBObject |
getMDStoreMetadata()
Gets the MD store metadata.
|
String |
getObject(String recordId) |
int |
getSize() |
boolean |
isUpsert()
Checks if is upsert.
|
void |
setBaseURI(String baseURI)
Sets the base uri.
|
void |
setUpsert(boolean upsert)
Sets the upsert.
|
public GridFSObjectStore(String id, com.mongodb.gridfs.GridFS collection, boolean upsert)
id - the idcollection - the collectionupsert - the upsertpublic String getId()
getId in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic int feedMetadataRecord(Iterable<eu.dnetlib.data.objectstore.rmi.MetadataObjectRecord> records, boolean incremental)
feedMetadataRecord in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic int feed(Iterable<eu.dnetlib.data.objectstore.modular.ObjectStoreRecord> records, boolean incremental)
feed in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic eu.dnetlib.enabling.resultset.ResultSetListener deliver(Long from, Long until)
deliver in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic eu.dnetlib.enabling.resultset.ResultSetListener deliverIds(Iterable<String> ids)
deliverIds in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic int getSize()
getSize in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic void deleteObject(String objectId)
deleteObject in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic String getObject(String recordId)
getObject in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic String getInterpretation()
getInterpretation in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic com.mongodb.DBObject getMDStoreMetadata()
public String getBaseURI()
public void setBaseURI(String baseURI)
baseURI - the new base uripublic boolean isUpsert()
public void setUpsert(boolean upsert)
upsert - the new upsertpublic 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 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.ObjectStoreServiceExceptionpublic boolean existIDStartsWith(String startId)
existIDStartsWith in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStorepublic 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.