atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shwetha Shivalingamurthy <sshivalingamur...@hortonworks.com>
Subject Re: [Atlas] A source code question
Date Thu, 10 Sep 2015 09:05:34 GMT
Should be struct. Can you file a bug please? Thanks

Regards,
Shwetha






On 10/09/15 1:55 pm, "ltf" <ltfxyz@163.com> wrote:

>Hello,
>When reading the source code of trunk, I think the following code may be
>a issue, or is intended ???
>
>
>file : org/apache/atlas/typesystem/types/TypeSystem.java
>for (StructTypeDefinition structDef : structDefs) {
>    constructStructureType(structDef);
>typeCategoriesToTypeNamesMap.put(DataTypes.TypeCategory.CLASS,
>structDef.typeName);       //should be DataTypes.TypeCategory.STRUCT  ???
>}
>
>for (TraitType traitType : traitTypes) {
>    constructHierarchicalType(TraitType.class,
>traitNameToDefMap.get(traitType.getName()));
>typeCategoriesToTypeNamesMap.put(DataTypes.TypeCategory.TRAIT,
>traitType.getName());
>}
>
>for (ClassType classType : classTypes) {
>    constructHierarchicalType(ClassType.class,
>classNameToDefMap.get(classType.getName()));
>typeCategoriesToTypeNamesMap.put(DataTypes.TypeCategory.CLASS,
>classType.getName());
>}
>
>
>Best, liutongfeng


Mime
View raw message