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

com.yahoo.schema.processing.multifieldresolver.MultiFieldResolver Maven / Gradle / Ivy

There is a newer version: 8.441.21
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.schema.processing.multifieldresolver;

import com.yahoo.config.application.api.DeployLogger;
import com.yahoo.schema.document.SDField;
import com.yahoo.schema.Schema;
import java.util.List;

/**
 * Abstract superclass of all multifield conflict resolvers
 */
public abstract class MultiFieldResolver {

    protected String indexName;
    protected List fields;
    protected Schema schema;

    protected DeployLogger deployLogger;

    public MultiFieldResolver(String indexName, List fields, Schema schema, DeployLogger logger) {
        this.indexName = indexName;
        this.fields = fields;
        this.schema = schema;
        this.deployLogger = logger;
    }

    /**
     * Checks the list of fields for specific conflicts, and reports and/or
     * attempts to correct them
     */
    public abstract void resolve();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy