aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/docproc/DocumentProcessor.java
blob: 3d9c8dd523b87f2cd10f5a4b576f97f5c1d4a28a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.docproc;

import com.yahoo.collections.Pair;
import com.yahoo.vespa.model.container.component.chain.ChainedComponent;
import com.yahoo.vespa.model.container.docproc.model.DocumentProcessorModel;

import java.util.Map;

/**
 * @author Einar M R Rosenvinge
 */
public class DocumentProcessor extends ChainedComponent<DocumentProcessorModel> {

    public static final String INDEXER = "com.yahoo.docprocs.indexing.IndexingProcessor";

    private final Map<Pair<String, String>, String> fieldNameSchemaMap;

    public DocumentProcessor(DocumentProcessorModel model) {
        super(model);
        this.fieldNameSchemaMap = model.fieldNameSchemaMap();
    }

    /**
     * The field name schema map that applies to this docproc
     * @return doctype,from → to
     */
    public Map<Pair<String,String>,String> fieldNameSchemaMap() {
        return fieldNameSchemaMap;
    }

}