private AtlasTypesDef getTypeDefs(String ... typeNames) throws AtlasServiceException { final AtlasTypesDef typeDefs = new AtlasTypesDef(); for (int i = 0; i < typeNames.length; i++) { final MultivaluedMap<String, String> searchParams = new MultivaluedMapImpl(); searchParams.add(SearchFilter.PARAM_NAME, typeNames[i]); final AtlasTypesDef typeDef = atlasClient.getAllTypeDefs(new SearchFilter(searchParams)); typeDefs.getEntityDefs().addAll(typeDef.getEntityDefs()); } logger.debug("typeDefs={}", typeDefs); return typeDefs; }
public PList(List<T> list, long startIndex, int pageSize, long totalCount, SortType sortType, String sortBy) { setList(list); setStartIndex(startIndex); setPageSize(pageSize); setTotalCount(totalCount); setSortType(sortType); setSortBy(sortBy); }
public static AtlasEnumDef newEnumDef(boolean hasDefaultValue) { return newEnumDef(getTypesRegistry(), hasDefaultValue); }
public static AtlasEntityDef newEntityDef(AtlasEntityDef[] superTypes) { return newEntityDef(getTypesRegistry(), superTypes); }
public static AtlasClassificationDef newClassificationDef() { return newClassificationDef(getTypesRegistry(), null); }
public static AtlasStructDef newStructDef() { return newStructDef(getTypesRegistry()); }
public static AtlasEntityDef newEntityDefWithSuperTypes() { return newEntityDefWithSuperTypes(getTypesRegistry()); }
public static AtlasEntity newEntity(AtlasEntityDef entityDef) { return newEntity(entityDef, getTypesRegistry()); }
public static AtlasClassification newClassification(AtlasClassificationDef classificationDef) { return newClassification(classificationDef, getTypesRegistry()); }
public SearchFilter(MultivaluedMap<String, String> params) { setParams(params); }
protected AtlasBaseModelObject() { init(); }
public static AtlasEntityDef newEntityDefWithSuperTypes(AtlasTypeRegistry typesRegistry) { return newEntityDef(typesRegistry, new AtlasEntityDef[] { ENTITY_DEF, ENTITY_DEF_WITH_SUPER_TYPE }); }
public PList(List<T> list, long startIndex, int pageSize, long totalCount, SortType sortType, String sortBy) { setList(list); setStartIndex(startIndex); setPageSize(pageSize); setTotalCount(totalCount); setSortType(sortType); setSortBy(sortBy); }
public static AtlasEnumDef newEnumDef(AtlasTypeRegistry typesRegistry) { return newEnumDef(getTypesRegistry(), true); }
public static AtlasEntityDef newEntityDef(AtlasEntityDef[] superTypes) { return newEntityDef(getTypesRegistry(), superTypes); }
public SearchFilter() { setParams(null); }
public static AtlasEnumDef newEnumDef() { return newEnumDef(getTypesRegistry(), true); }
public static AtlasEntityDef newEntityDef(AtlasTypeRegistry typesRegistry) { return newEntityDef(getTypesRegistry(), null); }
public static AtlasEnumDef newEnumDef(AtlasTypeRegistry typesRegistry) { return newEnumDef(getTypesRegistry(), true); }