if (isSetStrategy_options()) { if (!first) sb.append(", "); sb.append("strategy_options:");
if (isSetStrategy_options()) { if (!first) sb.append(", "); sb.append("strategy_options:");
@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(); }
if (isSetStrategy_options()) { if (!first) sb.append(", "); sb.append("strategy_options:");
@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; }
if (struct.isSetStrategy_options()) { oprot.writeFieldBegin(STRATEGY_OPTIONS_FIELD_DESC);
/** 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(); }
/** 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 (struct.isSetStrategy_options()) { optionals.set(0); if (struct.isSetStrategy_options()) {
if (struct.isSetStrategy_options()) { optionals.set(0); if (struct.isSetStrategy_options()) {
if (struct.isSetStrategy_options()) { optionals.set(0); if (struct.isSetStrategy_options()) {
ksDef.setStrategy_class(DEFAULT_KS_STRATEGY_CLASS); if (!ksDef.isSetStrategy_options()) { Map<String, String> stratOpts = new HashMap<>(); stratOpts.put("replication_factor", DEFAULT_KS_REPLICATION_FACTOR);
boolean this_present_strategy_options = true && this.isSetStrategy_options(); boolean that_present_strategy_options = true && that.isSetStrategy_options(); if (this_present_strategy_options || that_present_strategy_options) { if (!(this_present_strategy_options && that_present_strategy_options))
boolean this_present_strategy_options = true && this.isSetStrategy_options(); boolean that_present_strategy_options = true && that.isSetStrategy_options(); if (this_present_strategy_options || that_present_strategy_options) { if (!(this_present_strategy_options && that_present_strategy_options))
ksDef.setStrategy_class(DEFAULT_KS_STRATEGY_CLASS); if (!ksDef.isSetStrategy_options()) { Map<String, String> stratOpts = new HashMap<>(); stratOpts.put("replication_factor", DEFAULT_KS_REPLICATION_FACTOR);