ClassType(TypeSystem typeSystem, String name, String description, String version, ImmutableSet<String> superTypes, AttributeInfo... fields) throws AtlasException { super(typeSystem, ClassType.class, name, description, version, superTypes, fields); infoToNameMap = TypeUtils.buildAttrInfoToNameMap(fieldMapping); }
ClassType(TypeSystem typeSystem, String name, String description, String version, ImmutableSet<String> superTypes, AttributeInfo... fields) throws AtlasException { super(typeSystem, ClassType.class, name, description, version, superTypes, fields); infoToNameMap = TypeUtils.buildAttrInfoToNameMap(fieldMapping); }
TraitType(TypeSystem typeSystem, String name, String description, String version, ImmutableSet<String> superTraits, AttributeInfo... fields) throws AtlasException { super(typeSystem, TraitType.class, name, description, version, superTraits, fields); handler = new TypedStructHandler(this); infoToNameMap = TypeUtils.buildAttrInfoToNameMap(fieldMapping); }
TraitType(TypeSystem typeSystem, String name, String description, String version, ImmutableSet<String> superTraits, AttributeInfo... fields) throws AtlasException { super(typeSystem, TraitType.class, name, description, version, superTraits, fields); handler = new TypedStructHandler(this); infoToNameMap = TypeUtils.buildAttrInfoToNameMap(fieldMapping); }
protected StructType(TypeSystem typeSystem, String name, String description, String version, AttributeInfo... fields) throws AtlasException { super(name, description, version); this.typeSystem = typeSystem; this.fieldMapping = constructFieldMapping(fields); infoToNameMap = TypeUtils.buildAttrInfoToNameMap(this.fieldMapping); this.numFields = this.fieldMapping.fields.size(); this.handler = new TypedStructHandler(this); }
protected StructType(TypeSystem typeSystem, String name, String description, String version, AttributeInfo... fields) throws AtlasException { super(name, description, version); this.typeSystem = typeSystem; this.fieldMapping = constructFieldMapping(fields); infoToNameMap = TypeUtils.buildAttrInfoToNameMap(this.fieldMapping); this.numFields = this.fieldMapping.fields.size(); this.handler = new TypedStructHandler(this); }