summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/document/ImportedSimpleField.java
blob: 63f7f99c7724e93d85e14af036b3c8247994acee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2019 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.document;

import com.yahoo.searchdefinition.DocumentReference;

/**
 * A simple field that is imported from a concrete field in a referenced document type and given an alias name.
 */
public class ImportedSimpleField extends ImportedField {
    public ImportedSimpleField(String fieldName, DocumentReference reference, ImmutableSDField targetField) {
        super(fieldName, reference, targetField);
    }

    @Override
    public ImmutableSDField asImmutableSDField() {
        return new ImmutableImportedSDField(this);
    }
}