Class 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 Detail

      • SchemaMap

        public SchemaMap()
    • Method Detail

      • configure

        public void configure​(SchemamappingConfig config)
        Specified by:
        configure in interface com.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