blob: e0a9139a8801321da2622816e30ffaa6327f2e71 (
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 Vespa.ai. 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;
}
}
|