blob: 8b235121b36298f147e1be2e1a6ebda7f8e4a01c (
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
33
|
// 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<SDField> fields;
protected Schema schema;
protected DeployLogger deployLogger;
public MultiFieldResolver(String indexName, List<SDField> 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();
}
|