Package com.yahoo.docproc
Class Call
java.lang.Object
com.yahoo.docproc.Call
- All Implemented Interfaces:
Cloneable
A document processor to call - an item on a
CallStack
.- Author:
- bratseth, Einar M R Rosenvinge
-
Constructor Summary
ConstructorDescriptionCall
(DocumentProcessor processor) Call
(DocumentProcessor processor, com.yahoo.jdisc.Metric metric) Creates a new call to a processor with no arguments.Call
(DocumentProcessor processor, String chainName, com.yahoo.jdisc.Metric metric) -
Method Summary
Modifier and TypeMethodDescriptioncall
(Processing processing) Call the DocumentProcessor of this call.clone()
com.yahoo.document.DocumentPut
configDoc
(DocumentProcessor docProc, com.yahoo.document.DocumentPut documentPut) The Document object the proc should work on.Returns the processor to call.com.yahoo.component.ComponentId
Returns the ID of the processor to call.toString()
-
Constructor Details
-
Call
-
Call
Creates a new call to a processor with no arguments.- Parameters:
processor
- the document processor to call
-
Call
-
-
Method Details
-
clone
-
getDocumentProcessor
Returns the processor to call.- Returns:
- a reference to the processor to call
-
getDocumentProcessorId
public com.yahoo.component.ComponentId getDocumentProcessorId()Returns the ID of the processor to call.- Returns:
- the ID of the processor to call
-
configDoc
public com.yahoo.document.DocumentPut configDoc(DocumentProcessor docProc, com.yahoo.document.DocumentPut documentPut) The Document object the proc should work on. Normally the one in arguments, but could be a proxy object if schema mapping or @Accesses is in effect.Public for testing
-
call
Call the DocumentProcessor of this call.- Parameters:
processing
- the Processing object to use- Returns:
- the progress of the DocumentProcessor that was called
-
toString
-