sb.append(this.canEvolve); first = false; if (isSetSchemaGroup()) { if (!first) sb.append(", "); sb.append("schemaGroup:");
list.add(canEvolve); boolean present_schemaGroup = true && (isSetSchemaGroup()); list.add(present_schemaGroup); if (present_schemaGroup)
oprot.writeFieldEnd(); if (struct.schemaGroup != null) { if (struct.isSetSchemaGroup()) { oprot.writeFieldBegin(SCHEMA_GROUP_FIELD_DESC); oprot.writeString(struct.schemaGroup);
lastComparison = Boolean.valueOf(isSetSchemaGroup()).compareTo(other.isSetSchemaGroup()); if (lastComparison != 0) { return lastComparison; if (isSetSchemaGroup()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaGroup, other.schemaGroup); if (lastComparison != 0) {
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SCHEMA_TYPE: return isSetSchemaType(); case NAME: return isSetName(); case CAT_NAME: return isSetCatName(); case DB_NAME: return isSetDbName(); case COMPATIBILITY: return isSetCompatibility(); case VALIDATION_LEVEL: return isSetValidationLevel(); case CAN_EVOLVE: return isSetCanEvolve(); case SCHEMA_GROUP: return isSetSchemaGroup(); case DESCRIPTION: return isSetDescription(); } throw new IllegalStateException(); }
boolean this_present_schemaGroup = true && this.isSetSchemaGroup(); boolean that_present_schemaGroup = true && that.isSetSchemaGroup(); if (this_present_schemaGroup || that_present_schemaGroup) { if (!(this_present_schemaGroup && that_present_schemaGroup))
optionals.set(6); if (struct.isSetSchemaGroup()) { optionals.set(7); oprot.writeBool(struct.canEvolve); if (struct.isSetSchemaGroup()) { oprot.writeString(struct.schemaGroup);
if (other.isSetSchemaGroup()) { this.schemaGroup = other.schemaGroup;
private MISchema convertToMISchema(ISchema schema) throws NoSuchObjectException { return new MISchema(schema.getSchemaType().getValue(), normalizeIdentifier(schema.getName()), getMDatabase(schema.getCatName(), schema.getDbName()), schema.getCompatibility().getValue(), schema.getValidationLevel().getValue(), schema.isCanEvolve(), schema.isSetSchemaGroup() ? schema.getSchemaGroup() : null, schema.isSetDescription() ? schema.getDescription() : null); }
@Override public void alterISchema(ISchemaName schemaName, ISchema newSchema) throws NoSuchObjectException, MetaException { boolean committed = false; try { openTransaction(); MISchema oldMSchema = getMISchema(schemaName.getCatName(), schemaName.getDbName(), schemaName.getSchemaName()); if (oldMSchema == null) { throw new NoSuchObjectException("Schema " + schemaName + " does not exist"); } // Don't support changing name or type oldMSchema.setCompatibility(newSchema.getCompatibility().getValue()); oldMSchema.setValidationLevel(newSchema.getValidationLevel().getValue()); oldMSchema.setCanEvolve(newSchema.isCanEvolve()); if (newSchema.isSetSchemaGroup()) { oldMSchema.setSchemaGroup(newSchema.getSchemaGroup()); } if (newSchema.isSetDescription()) { oldMSchema.setDescription(newSchema.getDescription()); } committed = commitTransaction(); } finally { if (!committed) { rollbackTransaction(); } } }
private MISchema convertToMISchema(ISchema schema) throws NoSuchObjectException { return new MISchema(schema.getSchemaType().getValue(), normalizeIdentifier(schema.getName()), getMDatabase(schema.getCatName(), schema.getDbName()), schema.getCompatibility().getValue(), schema.getValidationLevel().getValue(), schema.isCanEvolve(), schema.isSetSchemaGroup() ? schema.getSchemaGroup() : null, schema.isSetDescription() ? schema.getDescription() : null); }
@Override public void alterISchema(ISchemaName schemaName, ISchema newSchema) throws NoSuchObjectException, MetaException { boolean committed = false; try { openTransaction(); MISchema oldMSchema = getMISchema(schemaName.getCatName(), schemaName.getDbName(), schemaName.getSchemaName()); if (oldMSchema == null) { throw new NoSuchObjectException("Schema " + schemaName + " does not exist"); } // Don't support changing name or type oldMSchema.setCompatibility(newSchema.getCompatibility().getValue()); oldMSchema.setValidationLevel(newSchema.getValidationLevel().getValue()); oldMSchema.setCanEvolve(newSchema.isCanEvolve()); if (newSchema.isSetSchemaGroup()) { oldMSchema.setSchemaGroup(newSchema.getSchemaGroup()); } if (newSchema.isSetDescription()) { oldMSchema.setDescription(newSchema.getDescription()); } committed = commitTransaction(); } finally { if (!committed) { rollbackTransaction(); } } }