first = false; if (isSetName()) { if (!first) sb.append(", "); sb.append("name:");
if (struct.isSetName()) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name);
/** * Performs a deep copy on <i>other</i>. */ public ColumnDescriptor(ColumnDescriptor other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetType()) { this.type = other.type; } this.descFlags = other.descFlags; this.precision = other.precision; this.scale = other.scale; if (other.isSetName()) { this.name = other.name; } if (other.isSetFullTableName()) { this.fullTableName = other.fullTableName; } if (other.isSetUdtTypeAndClassName()) { this.udtTypeAndClassName = other.udtTypeAndClassName; } }
/** 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 TYPE: return isSetType(); case DESC_FLAGS: return isSetDescFlags(); case PRECISION: return isSetPrecision(); case SCALE: return isSetScale(); case NAME: return isSetName(); case FULL_TABLE_NAME: return isSetFullTableName(); case UDT_TYPE_AND_CLASS_NAME: return isSetUdtTypeAndClassName(); } throw new IllegalStateException(); }