T - class of the object that can be used to iterate results of a bulk request of records from the store.public interface PublisherStore<T extends Cursor>
| Modifier and Type | Method and Description |
|---|---|
int |
count()
Counts the number of records in this store.
|
int |
count(String queryString)
Counts the number of records in this store matching the query.
|
void |
drop()
Drops the content of the store.
|
void |
drop(String queryString)
Drops the elements matching the query from the store.
|
void |
ensureIndices()
Ensures the indices on this store.
|
int |
feed(Iterable<String> records,
String source)
Feeds the store with the given records.
|
String |
getId()
Returns the identifier of this store.
|
List<eu.dnetlib.data.information.oai.publisher.PublisherField> |
getIndices()
Gets informaton about the indices available on this store.
|
String |
getInterpretation()
Gets the interpretation of this store.
|
String |
getLayout()
Gets the layout of this store.
|
String |
getMetadataFormat()
Gets the metadata format of this store.
|
eu.dnetlib.data.information.oai.publisher.info.RecordInfo |
getRecord(String recordId)
Retrieves the record with the given identifier from this store.
|
eu.dnetlib.data.information.oai.publisher.info.RecordInfo |
getRecord(String recordId,
eu.dnetlib.miscutils.functional.UnaryFunction<String,String> unaryFunction)
Retrieves the record with the given identifier from this store and apply the given unary function before delivering.
|
T |
getRecords(String queryString,
boolean bodyIncluded,
int limit)
Retrieves the records matching the given query string.
|
T |
getRecords(String queryString,
eu.dnetlib.miscutils.functional.UnaryFunction<String,String> unaryFunction,
boolean bodyIncluded,
int limit)
Retrieves the records matching the given query string and apply the given unary function before delivering.
|
String getId()
String getMetadataFormat()
String getInterpretation()
String getLayout()
eu.dnetlib.data.information.oai.publisher.info.RecordInfo getRecord(String recordId)
recordId - identifier of the record to retrieveeu.dnetlib.data.information.oai.publisher.info.RecordInfo getRecord(String recordId, eu.dnetlib.miscutils.functional.UnaryFunction<String,String> unaryFunction)
recordId - identifier of the record to retrieveunaryFunction - mapping from String to StringT getRecords(String queryString, boolean bodyIncluded, int limit)
queryString - search criterionbodyIncluded - false to get only identifiers, true to also get the body of recordslimit - max number of records to return. 0 means no limit.T getRecords(String queryString, eu.dnetlib.miscutils.functional.UnaryFunction<String,String> unaryFunction, boolean bodyIncluded, int limit)
queryString - search criterionunaryFunction - mapping from String to StringbodyIncluded - false to get only identifiers, true to also get the body of recordslimit - max number of records to return. 0 means no limit.List<eu.dnetlib.data.information.oai.publisher.PublisherField> getIndices()
void ensureIndices()
int feed(Iterable<String> records, String source)
records - XML records to store.source - String that identifies the record source.void drop()
void drop(String queryString)
queryString - int count()
int count(String queryString)
queryString - queryCopyright © 2026. All rights reserved.