blob: 27fea8a01b479410e6eb077816f535ab22171bee (
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.model;
import com.yahoo.collections.Pair;
import com.yahoo.container.bundle.BundleInstantiationSpecification;
import com.yahoo.component.chain.dependencies.Dependencies;
import com.yahoo.component.chain.model.ChainedComponentModel;
import java.util.HashMap;
import java.util.Map;
/**
* @author Einar M R Rosenvinge
*/
public class DocumentProcessorModel extends ChainedComponentModel {
private final Map<Pair<String, String>, String> fieldNameSchemaMap = new HashMap<>();
public DocumentProcessorModel(BundleInstantiationSpecification bundleInstantiationSpec, Dependencies dependencies, Map<Pair<String, String>, String> fieldNameSchemaMap) {
super(bundleInstantiationSpec, dependencies);
this.fieldNameSchemaMap.putAll(fieldNameSchemaMap);
}
/**
* The field name schema map that applies to this docproc
* @return doctype,from → to
*/
public Map<Pair<String,String>,String> fieldNameSchemaMap() {
return fieldNameSchemaMap;
}
}
|