: atlasClient.createAtlasTypeDefs(type); logger.debug("Result={}", atlasTypeDefsResult);
void createTypes() throws Exception { AtlasTypesDef atlasTypesDef = createTypeDefinitions(); System.out.println("\nCreating sample types: "); atlasClientV2.createAtlasTypeDefs(atlasTypesDef); verifyTypesCreated(); }
@Deprecated public AtlasClassificationDef createClassificationDef(AtlasClassificationDef classificationDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getClassificationDefs().add(classificationDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getClassificationDefs() != null; return created.getClassificationDefs().get(0); }
@Deprecated public AtlasEnumDef createEnumDef(AtlasEnumDef enumDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getEnumDefs().add(enumDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getEnumDefs() != null; return created.getEnumDefs().get(0); }
@Deprecated public AtlasStructDef createStructDef(AtlasStructDef structDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getStructDefs().add(structDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getStructDefs() != null; return created.getStructDefs().get(0); }
@Deprecated public AtlasClassificationDef createClassificationDef(AtlasClassificationDef classificationDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getClassificationDefs().add(classificationDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getClassificationDefs() != null; return created.getClassificationDefs().get(0); }
@Deprecated public AtlasEntityDef createEntityDef(AtlasEntityDef entityDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getEntityDefs().add(entityDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getEntityDefs() != null; return created.getEntityDefs().get(0); }
@Deprecated public AtlasEntityDef createEntityDef(AtlasEntityDef entityDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getEntityDefs().add(entityDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getEntityDefs() != null; return created.getEntityDefs().get(0); }
@Deprecated public AtlasEnumDef createEnumDef(AtlasEnumDef enumDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getEnumDefs().add(enumDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getEnumDefs() != null; return created.getEnumDefs().get(0); }
@Deprecated public AtlasStructDef createStructDef(AtlasStructDef structDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getStructDefs().add(structDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getStructDefs() != null; return created.getStructDefs().get(0); }
@Deprecated public AtlasEntityDef createEntityDef(AtlasEntityDef entityDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getEntityDefs().add(entityDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getEntityDefs() != null; return created.getEntityDefs().get(0); }
@Deprecated public AtlasClassificationDef createClassificationDef(AtlasClassificationDef classificationDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getClassificationDefs().add(classificationDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getClassificationDefs() != null; return created.getClassificationDefs().get(0); }
@Deprecated public AtlasEnumDef createEnumDef(AtlasEnumDef enumDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getEnumDefs().add(enumDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getEnumDefs() != null; return created.getEnumDefs().get(0); }
@Deprecated public AtlasStructDef createStructDef(AtlasStructDef structDef) throws AtlasServiceException { AtlasTypesDef atlasTypesDef = new AtlasTypesDef(); atlasTypesDef.getStructDefs().add(structDef); AtlasTypesDef created = createAtlasTypeDefs(atlasTypesDef); assert created != null; assert created.getStructDefs() != null; return created.getStructDefs().get(0); }
: atlasClient.createAtlasTypeDefs(type); logger.debug("Result={}", atlasTypeDefsResult);