public interface IndexCollection
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(eu.dnetlib.functionality.index.model.document.IndexDocument doc)
Adds an input Document to the index.
|
boolean |
addAll(Collection<eu.dnetlib.functionality.index.model.document.IndexDocument> docs)
Adds the all.
|
boolean |
addAll(Iterator<eu.dnetlib.functionality.index.model.document.IndexDocument> docs)
Adds all the documents to the index giving an iterator of input documents.
|
boolean |
commit()
Commit the data.
|
boolean |
deleteByQuery(String query,
String dsId)
Delete data from the index by query.
|
boolean |
deleteIndex(String dsId)
Delete index.
|
void |
shutdown()
Releases resources and closes connections.
|
boolean add(eu.dnetlib.functionality.index.model.document.IndexDocument doc)
throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
doc - the doceu.dnetlib.data.provision.index.rmi.IndexServiceException - the index service exceptionboolean addAll(Iterator<eu.dnetlib.functionality.index.model.document.IndexDocument> docs) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
docs - the iterator of input documentseu.dnetlib.data.provision.index.rmi.IndexServiceException - the index service exceptionboolean addAll(Collection<eu.dnetlib.functionality.index.model.document.IndexDocument> docs) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
docs - the docseu.dnetlib.data.provision.index.rmi.IndexServiceException - the index service exceptionboolean deleteIndex(String dsId) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
dsId - the ds ideu.dnetlib.data.provision.index.rmi.IndexServiceException - the index service exceptionboolean deleteByQuery(String query, String dsId) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
query - the querydsId - the ds ideu.dnetlib.data.provision.index.rmi.IndexServiceException - the index service exceptionboolean commit()
throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
eu.dnetlib.data.provision.index.rmi.IndexServiceException - the index service exceptionvoid shutdown()
Copyright © 2018. All rights reserved.