All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.vespa.model.container.docproc.DocumentProcessor Maven / Gradle / Ivy

There is a newer version: 8.409.18
Show newest version
// 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 {

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

    private final Map, 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,String> fieldNameSchemaMap() {
        return fieldNameSchemaMap;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy