public static int getParallelismHint(ComponentCommon componentCommon) { if (!componentCommon.is_set_parallelism_hint()) { return 1; } else { return componentCommon.get_parallelism_hint(); } }
if (is_set_parallelism_hint()) { if (!first) sb.append(", "); sb.append("parallelism_hint:");
/** 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 java.lang.IllegalArgumentException(); } switch (field) { case INPUTS: return is_set_inputs(); case STREAMS: return is_set_streams(); case PARALLELISM_HINT: return is_set_parallelism_hint(); case JSON_CONF: return is_set_json_conf(); } throw new java.lang.IllegalStateException(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_inputs()) ? 131071 : 524287); if (is_set_inputs()) hashCode = hashCode * 8191 + inputs.hashCode(); hashCode = hashCode * 8191 + ((is_set_streams()) ? 131071 : 524287); if (is_set_streams()) hashCode = hashCode * 8191 + streams.hashCode(); hashCode = hashCode * 8191 + ((is_set_parallelism_hint()) ? 131071 : 524287); if (is_set_parallelism_hint()) hashCode = hashCode * 8191 + parallelism_hint; hashCode = hashCode * 8191 + ((is_set_json_conf()) ? 131071 : 524287); if (is_set_json_conf()) hashCode = hashCode * 8191 + json_conf.hashCode(); return hashCode; }
if (struct.is_set_parallelism_hint()) { optionals.set(0); if (struct.is_set_parallelism_hint()) { oprot.writeI32(struct.parallelism_hint);
lastComparison = java.lang.Boolean.valueOf(is_set_parallelism_hint()).compareTo(other.is_set_parallelism_hint()); if (lastComparison != 0) { return lastComparison; if (is_set_parallelism_hint()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.parallelism_hint, other.parallelism_hint); if (lastComparison != 0) {
boolean this_present_parallelism_hint = true && this.is_set_parallelism_hint(); boolean that_present_parallelism_hint = true && that.is_set_parallelism_hint(); if (this_present_parallelism_hint || that_present_parallelism_hint) { if (!(this_present_parallelism_hint && that_present_parallelism_hint))
if (struct.is_set_parallelism_hint()) { oprot.writeFieldBegin(PARALLELISM_HINT_FIELD_DESC); oprot.writeI32(struct.parallelism_hint);
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_inputs = true && (is_set_inputs()); list.add(present_inputs); if (present_inputs) list.add(inputs); boolean present_streams = true && (is_set_streams()); list.add(present_streams); if (present_streams) list.add(streams); boolean present_parallelism_hint = true && (is_set_parallelism_hint()); list.add(present_parallelism_hint); if (present_parallelism_hint) list.add(parallelism_hint); boolean present_json_conf = true && (is_set_json_conf()); list.add(present_json_conf); if (present_json_conf) list.add(json_conf); return list.hashCode(); }
if (is_set_parallelism_hint()) { if (!first) sb.append(", "); sb.append("parallelism_hint:");
/** 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 INPUTS: return is_set_inputs(); case STREAMS: return is_set_streams(); case PARALLELISM_HINT: return is_set_parallelism_hint(); case JSON_CONF: return is_set_json_conf(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(is_set_parallelism_hint()).compareTo(other.is_set_parallelism_hint()); if (lastComparison != 0) { return lastComparison; if (is_set_parallelism_hint()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parallelism_hint, other.parallelism_hint); if (lastComparison != 0) {
if (struct.is_set_parallelism_hint()) { optionals.set(0); if (struct.is_set_parallelism_hint()) { oprot.writeI32(struct.parallelism_hint);
boolean this_present_parallelism_hint = true && this.is_set_parallelism_hint(); boolean that_present_parallelism_hint = true && that.is_set_parallelism_hint(); if (this_present_parallelism_hint || that_present_parallelism_hint) { if (!(this_present_parallelism_hint && that_present_parallelism_hint))
if (common.is_set_parallelism_hint()) { int dop = common.get_parallelism_hint(); source.setParallelism(dop); userBolt, inputStreams); if (common.is_set_parallelism_hint()) { int dop = common.get_parallelism_hint(); outputStream.setParallelism(dop);
if (struct.is_set_parallelism_hint()) { oprot.writeFieldBegin(PARALLELISM_HINT_FIELD_DESC); oprot.writeI32(struct.parallelism_hint);