summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/schema/document/ImportedSimpleField.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema/document/ImportedSimpleField.java')
-rw-r--r--config-model/src/main/java/com/yahoo/schema/document/ImportedSimpleField.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/document/ImportedSimpleField.java b/config-model/src/main/java/com/yahoo/schema/document/ImportedSimpleField.java
new file mode 100644
index 00000000000..244135ecc10
--- /dev/null
+++ b/config-model/src/main/java/com/yahoo/schema/document/ImportedSimpleField.java
@@ -0,0 +1,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);
+ }
+}