public class EmlAnnotationSubprocessor extends Object implements IDocumentSubprocessor
| Constructor and Description |
|---|
EmlAnnotationSubprocessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(String formatId)
Returns true if subprocessor should be run against object
|
List<ISolrField> |
getFieldList() |
List<String> |
getFieldsToMerge() |
List<String> |
getMatchDocuments() |
org.dataone.cn.index.util.PerformanceLogger |
getPerfLog() |
SubprocessorUtility |
getProcessorUtility() |
void |
initExpression(XPath xpathObject) |
SolrDoc |
mergeWithIndexedDocument(SolrDoc indexDocument)
Merge updates with existing solr documents
|
Map<String,SolrDoc> |
processDocument(String identifier,
Map<String,SolrDoc> docs,
InputStream is)
Method allows for manipulation of indexed fields that should be added to solr index
|
void |
setFieldList(List<ISolrField> fieldList) |
void |
setFieldsToMerge(List<String> fieldsToMerge) |
void |
setMatchDocuments(List<String> matchDocuments) |
void |
setPerfLog(org.dataone.cn.index.util.PerformanceLogger perfLog) |
void |
setProcessorUtility(SubprocessorUtility processorUtility) |
public boolean canProcess(String formatId)
canProcess in interface IDocumentSubprocessorformatId - the the document to be processedpublic Map<String,SolrDoc> processDocument(String identifier, Map<String,SolrDoc> docs, InputStream is) throws Exception
IDocumentSubprocessorprocessDocument in interface IDocumentSubprocessoridentifier - id of original document in Map docsdocs - Documents indexed by identifiersis - original document streamExceptionpublic SolrDoc mergeWithIndexedDocument(SolrDoc indexDocument) throws IOException, org.apache.commons.codec.EncoderException, XPathExpressionException
mergeWithIndexedDocument in interface IDocumentSubprocessorindexDocument - IOExceptionorg.apache.commons.codec.EncoderExceptionXPathExpressionExceptionpublic SubprocessorUtility getProcessorUtility()
public void setProcessorUtility(SubprocessorUtility processorUtility)
processorUtility - the processorUtility to setpublic org.dataone.cn.index.util.PerformanceLogger getPerfLog()
public void setPerfLog(org.dataone.cn.index.util.PerformanceLogger perfLog)
perfLog - the perfLog to setpublic List<ISolrField> getFieldList()
public void setFieldList(List<ISolrField> fieldList)
public void initExpression(XPath xpathObject)
Copyright © 2022. All rights reserved.