public class SolrIndexService extends Object
Constructor and Description |
---|
SolrIndexService() |
Modifier and Type | Method and Description |
---|---|
List<IDocumentDeleteSubprocessor> |
getDeleteSubprocessors() |
HTTPService |
getHttpService() |
String |
getSolrindexUri() |
String |
getSolrQueryUri() |
List<IDocumentSubprocessor> |
getSubprocessors() |
IDocumentSubprocessor |
getSystemMetadataProcessor() |
void |
insertIntoIndex(List<org.dataone.cn.index.task.IndexTask> tasks) |
void |
insertIntoIndex(String id,
InputStream systemMetaDataStream,
String objectPath)
Given a PID, system metadata input stream, and an optional document
path, populate the set of SOLR fields for the document and update the
index.
|
SolrElementAdd |
processObject(String id,
InputStream systemMetaDataStream,
String objectPath)
Given a PID, system metadata input stream, and an optional document
path, populate the set of SOLR fields for the document.
|
void |
removeFromIndex(List<org.dataone.cn.index.task.IndexTask> tasks) |
void |
removeFromIndex(String identifier) |
void |
setDeleteSubprocessors(List<IDocumentDeleteSubprocessor> deleteSubprocessorList) |
void |
setHttpService(HTTPService service) |
void |
setSolrIndexUri(String solrindexUri) |
void |
setSolrQueryUri(String solrQueryUri) |
void |
setSubprocessors(List<IDocumentSubprocessor> subprocessorList) |
void |
setSystemMetadataProcessor(IDocumentSubprocessor systemMetadataProcessor) |
public void removeFromIndex(List<org.dataone.cn.index.task.IndexTask> tasks) throws Exception
Exception
public SolrElementAdd processObject(String id, InputStream systemMetaDataStream, String objectPath) throws IOException, SAXException, ParserConfigurationException, XPathExpressionException, org.apache.commons.codec.EncoderException, Exception
id
- systemMetaDataStream
- objectPath
- IOException
SAXException
ParserConfigurationException
XPathExpressionException
org.apache.commons.codec.EncoderException
Exception
public void insertIntoIndex(String id, InputStream systemMetaDataStream, String objectPath) throws IOException, SAXException, ParserConfigurationException, XPathExpressionException, org.apache.commons.codec.EncoderException, Exception
id
- systemMetaDataStream
- objectPath
- IOException
SAXException
ParserConfigurationException
XPathExpressionException
org.apache.commons.codec.EncoderException
Exception
public void insertIntoIndex(List<org.dataone.cn.index.task.IndexTask> tasks) throws IOException, SAXException, ParserConfigurationException, XPathExpressionException, org.apache.commons.codec.EncoderException, Exception
IOException
SAXException
ParserConfigurationException
XPathExpressionException
org.apache.commons.codec.EncoderException
Exception
public String getSolrindexUri()
public void setSolrIndexUri(String solrindexUri)
public void setHttpService(HTTPService service)
public HTTPService getHttpService()
public String getSolrQueryUri()
public void setSolrQueryUri(String solrQueryUri)
public List<IDocumentSubprocessor> getSubprocessors()
public List<IDocumentDeleteSubprocessor> getDeleteSubprocessors()
public void setSubprocessors(List<IDocumentSubprocessor> subprocessorList)
public void setDeleteSubprocessors(List<IDocumentDeleteSubprocessor> deleteSubprocessorList)
public IDocumentSubprocessor getSystemMetadataProcessor()
public void setSystemMetadataProcessor(IDocumentSubprocessor systemMetadataProcessor)
Copyright © 2022. All rights reserved.