atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltf <ltf...@163.com>
Subject [Atlas] A source code question
Date Thu, 10 Sep 2015 08:25:11 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message