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 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 Map<com.yahoo.collections.Pair<String,String>,String>
chainMap(String chain, 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 Map<com.yahoo.collections.Pair<String,String>,String> chainMap(String chain, 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
-
-