HierarchicalTypeStore(MemRepository repository, HierarchicalType hierarchicalType) throws RepositoryException {
this.hierarchicalType = (IConstructableType) hierarchicalType;
this.repository = repository;
ImmutableMap.Builder<AttributeInfo, IAttributeStore> b =
new ImmutableBiMap.Builder<>();
typeNameList = Lists.newArrayList((String) null);
ImmutableList<AttributeInfo> l = hierarchicalType.immediateAttrs;
for (AttributeInfo i : l) {
b.put(i, AttributeStores.createStore(i));
}
attrStores = b.build();
ImmutableList.Builder<HierarchicalTypeStore> b1 = new ImmutableList.Builder<>();
Set<String> allSuperTypeNames = hierarchicalType.getAllSuperTypeNames();
for (String s : allSuperTypeNames) {
b1.add(repository.getStore(s));
}
superTypeStores = b1.build();
nextPos = 0;
idPosMap = new HashMap<>();
freePositions = new ArrayList<>();
lock = new ReentrantReadWriteLock();
}
HierarchicalTypeStore.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:incubator-atlas
作者:
评论列表
文章目录