public Map<String, TemporaryImportedField> fields() {
        if (owner.inherited().isEmpty()) return Collections.unmodifiableMap(fields);
        if (owner.inherited().get().temporaryImportedFields().isEmpty()) return Collections.unmodifiableMap(fields);

        var allFields = new HashMap<>(owner.inherited().get().temporaryImportedFields().get().fields());
        allFields.putAll(fields);
        return allFields;
    }
A set of fields that are imported from referenced document types.

This is temporary AST structure that only refers to the imported fields by name.

@author geirst
config-model/src/main/java/com/yahoo/schema/document/TemporaryImportedFields.java