T
- index stage configuration classpublic abstract class IndexStageBase<T extends IndexStageConfig> extends java.lang.Object implements IndexStage<T>
@Stage(type = "myStage", configClass = MyStageConfig.class) public class MyStage extends IndexStageBase<MyStageConfig> { @Override public Document process(Document document, Context context) { // get configuration String myBlobId = config.myBlobdId(); // call Fusion API methods fusion.blobs().getBlobContent(myBlobId); // further document processing logic } }
Modifier and Type | Field and Description |
---|---|
protected T |
config |
protected Fusion |
fusion |
Constructor and Description |
---|
IndexStageBase() |
Modifier and Type | Method and Description |
---|---|
void |
init(T config,
Fusion fusion)
Stage initialization callback.
|
Document |
newDocument() |
Document |
newDocument(java.lang.String id) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process, process
protected Fusion fusion
protected T extends IndexStageConfig config
public Document newDocument()
public Document newDocument(java.lang.String id)
public void init(T config, Fusion fusion)
IndexStage
IndexStageConfig
instance. Additionally Fusion
interface instance will be passed to allow calling Fusion API from the index stage.init
in interface IndexStage<T extends IndexStageConfig>
config
- index pipeline stage configurationfusion
- Fusion API instance