Modifier and Type | Field and Description |
---|---|
private Map<String,com.yahoo.document.DocumentType> |
documentTypes |
private com.yahoo.docproc.jdisc.DocumentProcessingHandler |
handler |
Constructor and Description |
---|
DocumentProcessing(com.yahoo.docproc.jdisc.DocumentProcessingHandler handler) |
Modifier and Type | Method and Description |
---|---|
Map<String,com.yahoo.document.annotation.AnnotationType> |
getAnnotationTypes() |
com.yahoo.processing.execution.chain.ChainRegistry<com.yahoo.docproc.DocumentProcessor> |
getChains()
Returns a registry of configured docproc chains.
|
Map<String,com.yahoo.document.DocumentType> |
getDocumentTypes() |
private com.yahoo.docproc.DocprocExecutor |
getExecutor(com.yahoo.component.ComponentSpecification chain) |
com.yahoo.docproc.DocumentProcessor.Progress |
process(com.yahoo.component.ComponentSpecification chain,
com.yahoo.docproc.Processing processing)
Processes the given Processing through the specified chain.
|
com.yahoo.docproc.DocumentProcessor.Progress |
processOnce(com.yahoo.component.ComponentSpecification chain,
com.yahoo.docproc.Processing processing)
Processes the given Processing through the specified chain.
|
private static Map<String,com.yahoo.document.DocumentType> |
retrieveDocumentTypes(com.yahoo.document.DocumentTypeManager documentTypeManager) |
DocumentProcessing(com.yahoo.docproc.jdisc.DocumentProcessingHandler handler)
private static Map<String,com.yahoo.document.DocumentType> retrieveDocumentTypes(com.yahoo.document.DocumentTypeManager documentTypeManager)
public com.yahoo.docproc.DocumentProcessor.Progress process(com.yahoo.component.ComponentSpecification chain, com.yahoo.docproc.Processing processing)
DocumentProcessor
in the
chain returns a DocumentProcessor.LaterProgress
,
the calling thread will sleep for the duration
specified in DocumentProcessor.LaterProgress#getDelay()
,
and then run again. This method will hence return when a document processor returns
DocumentProcessor.Progress#DONE
or
DocumentProcessor.Progress#FAILED
, throws an exception,
or if the calling thread is interrupted. This method will never return a
DocumentProcessor.LaterProgress
.chain
- the specification of the chain to executeprocessing
- the Processing to processRuntimeException
- if one of the document processors in the chain throws, or if the calling thread is interruptedpublic com.yahoo.docproc.DocumentProcessor.Progress processOnce(com.yahoo.component.ComponentSpecification chain, com.yahoo.docproc.Processing processing)
DocumentProcessor
in the
chain returns a DocumentProcessor.LaterProgress
,
it will be returned by this method. This method will hence return whenever a document processor returns any
DocumentProcessor.Progress
, or
throws an exception.chain
- the specification of the chain to executeprocessing
- the Processing to processRuntimeException
- if one of the document processors in the chain throwsprivate com.yahoo.docproc.DocprocExecutor getExecutor(com.yahoo.component.ComponentSpecification chain)
public com.yahoo.processing.execution.chain.ChainRegistry<com.yahoo.docproc.DocumentProcessor> getChains()
Copyright © 2018. All rights reserved.