@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); builder.append(present_name); if (present_name) builder.append(name); boolean present_strategy_class = true && (isSetStrategy_class()); builder.append(present_strategy_class); if (present_strategy_class) builder.append(strategy_class); boolean present_strategy_options = true && (isSetStrategy_options()); builder.append(present_strategy_options); if (present_strategy_options) builder.append(strategy_options); boolean present_replication_factor = true && (isSetReplication_factor()); builder.append(present_replication_factor); if (present_replication_factor) builder.append(replication_factor); boolean present_cf_defs = true && (isSetCf_defs()); builder.append(present_cf_defs); if (present_cf_defs) builder.append(cf_defs); boolean present_durable_writes = true && (isSetDurable_writes()); builder.append(present_durable_writes); if (present_durable_writes) builder.append(durable_writes); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); builder.append(present_name); if (present_name) builder.append(name); boolean present_strategy_class = true && (isSetStrategy_class()); builder.append(present_strategy_class); if (present_strategy_class) builder.append(strategy_class); boolean present_strategy_options = true && (isSetStrategy_options()); builder.append(present_strategy_options); if (present_strategy_options) builder.append(strategy_options); boolean present_replication_factor = true && (isSetReplication_factor()); builder.append(present_replication_factor); if (present_replication_factor) builder.append(replication_factor); boolean present_cf_defs = true && (isSetCf_defs()); builder.append(present_cf_defs); if (present_cf_defs) builder.append(cf_defs); boolean present_durable_writes = true && (isSetDurable_writes()); builder.append(present_durable_writes); if (present_durable_writes) builder.append(durable_writes); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); builder.append(present_name); if (present_name) builder.append(name); boolean present_strategy_class = true && (isSetStrategy_class()); builder.append(present_strategy_class); if (present_strategy_class) builder.append(strategy_class); boolean present_strategy_options = true && (isSetStrategy_options()); builder.append(present_strategy_options); if (present_strategy_options) builder.append(strategy_options); boolean present_replication_factor = true && (isSetReplication_factor()); builder.append(present_replication_factor); if (present_replication_factor) builder.append(replication_factor); boolean present_cf_defs = true && (isSetCf_defs()); builder.append(present_cf_defs); if (present_cf_defs) builder.append(cf_defs); boolean present_durable_writes = true && (isSetDurable_writes()); builder.append(present_durable_writes); if (present_durable_writes) builder.append(durable_writes); return builder.toHashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public KsDef(KsDef other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } if (other.isSetStrategy_class()) { this.strategy_class = other.strategy_class; } if (other.isSetStrategy_options()) { Map<String,String> __this__strategy_options = new HashMap<String,String>(other.strategy_options); this.strategy_options = __this__strategy_options; } this.replication_factor = other.replication_factor; if (other.isSetCf_defs()) { List<CfDef> __this__cf_defs = new ArrayList<CfDef>(other.cf_defs.size()); for (CfDef other_element : other.cf_defs) { __this__cf_defs.add(new CfDef(other_element)); } this.cf_defs = __this__cf_defs; } this.durable_writes = other.durable_writes; }
/** * Performs a deep copy on <i>other</i>. */ public KsDef(KsDef other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } if (other.isSetStrategy_class()) { this.strategy_class = other.strategy_class; } if (other.isSetStrategy_options()) { Map<String,String> __this__strategy_options = new HashMap<String,String>(other.strategy_options); this.strategy_options = __this__strategy_options; } this.replication_factor = other.replication_factor; if (other.isSetCf_defs()) { List<CfDef> __this__cf_defs = new ArrayList<CfDef>(other.cf_defs.size()); for (CfDef other_element : other.cf_defs) { __this__cf_defs.add(new CfDef(other_element)); } this.cf_defs = __this__cf_defs; } this.durable_writes = other.durable_writes; }
/** * Performs a deep copy on <i>other</i>. */ public KsDef(KsDef other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } if (other.isSetStrategy_class()) { this.strategy_class = other.strategy_class; } if (other.isSetStrategy_options()) { Map<String,String> __this__strategy_options = new HashMap<String,String>(other.strategy_options); this.strategy_options = __this__strategy_options; } this.replication_factor = other.replication_factor; if (other.isSetCf_defs()) { List<CfDef> __this__cf_defs = new ArrayList<CfDef>(other.cf_defs.size()); for (CfDef other_element : other.cf_defs) { __this__cf_defs.add(new CfDef(other_element)); } this.cf_defs = __this__cf_defs; } this.durable_writes = other.durable_writes; }
lastComparison = Boolean.valueOf(isSetStrategy_class()).compareTo(other.isSetStrategy_class()); if (lastComparison != 0) { return lastComparison; if (isSetStrategy_class()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.strategy_class, other.strategy_class); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetStrategy_class()).compareTo(other.isSetStrategy_class()); if (lastComparison != 0) { return lastComparison; if (isSetStrategy_class()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.strategy_class, other.strategy_class); 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 NAME: return isSetName(); case STRATEGY_CLASS: return isSetStrategy_class(); case STRATEGY_OPTIONS: return isSetStrategy_options(); case REPLICATION_FACTOR: return isSetReplication_factor(); case CF_DEFS: return isSetCf_defs(); case DURABLE_WRITES: return isSetDurable_writes(); } throw new IllegalStateException(); }
/** 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 NAME: return isSetName(); case STRATEGY_CLASS: return isSetStrategy_class(); case STRATEGY_OPTIONS: return isSetStrategy_options(); case REPLICATION_FACTOR: return isSetReplication_factor(); case CF_DEFS: return isSetCf_defs(); case DURABLE_WRITES: return isSetDurable_writes(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetStrategy_class()).compareTo(other.isSetStrategy_class()); if (lastComparison != 0) { return lastComparison; if (isSetStrategy_class()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.strategy_class, other.strategy_class); 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 NAME: return isSetName(); case STRATEGY_CLASS: return isSetStrategy_class(); case STRATEGY_OPTIONS: return isSetStrategy_options(); case REPLICATION_FACTOR: return isSetReplication_factor(); case CF_DEFS: return isSetCf_defs(); case DURABLE_WRITES: return isSetDurable_writes(); } throw new IllegalStateException(); }
if (!ksDef.isSetStrategy_class()) { ksDef.setStrategy_class(DEFAULT_KS_STRATEGY_CLASS);
boolean this_present_strategy_class = true && this.isSetStrategy_class(); boolean that_present_strategy_class = true && that.isSetStrategy_class(); if (this_present_strategy_class || that_present_strategy_class) { if (!(this_present_strategy_class && that_present_strategy_class))
boolean this_present_strategy_class = true && this.isSetStrategy_class(); boolean that_present_strategy_class = true && that.isSetStrategy_class(); if (this_present_strategy_class || that_present_strategy_class) { if (!(this_present_strategy_class && that_present_strategy_class))
boolean this_present_strategy_class = true && this.isSetStrategy_class(); boolean that_present_strategy_class = true && that.isSetStrategy_class(); if (this_present_strategy_class || that_present_strategy_class) { if (!(this_present_strategy_class && that_present_strategy_class))
if (!ksDef.isSetStrategy_class()) { ksDef.setStrategy_class(DEFAULT_KS_STRATEGY_CLASS);