Package com.yahoo.docproc.proxy
Class SchemaMap
- java.lang.Object
-
- com.yahoo.docproc.proxy.SchemaMap
-
- All Implemented Interfaces:
com.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<SchemamappingConfig>
public class SchemaMap extends java.lang.Object implements com.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<SchemamappingConfig>
Can be used to map field names from input doc into names used in a docproc that was written with generic field names.- Author:
- vegardh
-
-
Constructor Summary
Constructors Constructor Description SchemaMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<com.yahoo.collections.Pair<java.lang.String,java.lang.String>,java.lang.String>
chainMap(java.lang.String chain, java.lang.String docproc)
The map for a given chain,docproc: "Reverses" the direction, this is the mapping a docproc should do when a doc comes in.void
configure(SchemamappingConfig config)
-
-
-
Method Detail
-
configure
public void configure(SchemamappingConfig config)
- Specified by:
configure
in interfacecom.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<SchemamappingConfig>
-
chainMap
public java.util.Map<com.yahoo.collections.Pair<java.lang.String,java.lang.String>,java.lang.String> chainMap(java.lang.String chain, java.lang.String docproc)
The map for a given chain,docproc: "Reverses" the direction, this is the mapping a docproc should do when a doc comes in. The doctype is null if not given in map.- Returns:
- (doctype,inProcessor)→inDocument
-
-