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

import com.yahoo.schema.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);
    }
}