public ISchema build() throws MetaException { if (schemaType == null || name == null) { throw new MetaException("You must provide a schemaType and name"); } ISchema iSchema = new ISchema(schemaType, name, catName, dbName, compatibility, validationLevel, canEvolve); if (schemaGroup != null) iSchema.setSchemaGroup(schemaGroup); if (description != null) iSchema.setDescription(description); return iSchema; } }
private ISchema convertToISchema(MISchema mSchema) { if (mSchema == null) { return null; } ISchema schema = new ISchema(SchemaType.findByValue(mSchema.getSchemaType()), mSchema.getName(), mSchema.getDb().getCatalogName(), mSchema.getDb().getName(), SchemaCompatibility.findByValue(mSchema.getCompatibility()), SchemaValidation.findByValue(mSchema.getValidationLevel()), mSchema.getCanEvolve()); if (mSchema.getDescription() != null) { schema.setDescription(mSchema.getDescription()); } if (mSchema.getSchemaGroup() != null) { schema.setSchemaGroup(mSchema.getSchemaGroup()); } return schema; }
unsetSchemaGroup(); } else { setSchemaGroup((String)value);
schema.setValidationLevel(SchemaValidation.ALL); schema.setCanEvolve(true); schema.setSchemaGroup(schemaGroup); schema.setDescription(description); client.alterISchema(DEFAULT_CATALOG_NAME, DEFAULT_DATABASE_NAME, schemaName, schema);
schema.setValidationLevel(SchemaValidation.ALL); schema.setCanEvolve(true); schema.setSchemaGroup(schemaGroup); schema.setDescription(description); objectStore.alterISchema(new ISchemaName(db.getCatalogName(), db.getName(), schemaName), schema);
schema.setValidationLevel(SchemaValidation.ALL); schema.setCanEvolve(true); schema.setSchemaGroup(schemaGroup); schema.setDescription(description); client.alterISchema(catName, dbName, schemaName, schema);
private ISchema convertToISchema(MISchema mSchema) { if (mSchema == null) { return null; } ISchema schema = new ISchema(SchemaType.findByValue(mSchema.getSchemaType()), mSchema.getName(), mSchema.getDb().getCatalogName(), mSchema.getDb().getName(), SchemaCompatibility.findByValue(mSchema.getCompatibility()), SchemaValidation.findByValue(mSchema.getValidationLevel()), mSchema.getCanEvolve()); if (mSchema.getDescription() != null) { schema.setDescription(mSchema.getDescription()); } if (mSchema.getSchemaGroup() != null) { schema.setSchemaGroup(mSchema.getSchemaGroup()); } return schema; }