Search in sources :

Example 31 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project storm by nathanmarz.

the class ExecutorInfo method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_task_start = true;
    builder.append(present_task_start);
    if (present_task_start)
        builder.append(task_start);
    boolean present_task_end = true;
    builder.append(present_task_end);
    if (present_task_end)
        builder.append(task_end);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 32 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project storm by nathanmarz.

the class ExecutorStats method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_emitted = true && (is_set_emitted());
    builder.append(present_emitted);
    if (present_emitted)
        builder.append(emitted);
    boolean present_transferred = true && (is_set_transferred());
    builder.append(present_transferred);
    if (present_transferred)
        builder.append(transferred);
    boolean present_specific = true && (is_set_specific());
    builder.append(present_specific);
    if (present_specific)
        builder.append(specific);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 33 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project storm by nathanmarz.

the class NotAliveException method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_msg = true && (is_set_msg());
    builder.append(present_msg);
    if (present_msg)
        builder.append(msg);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 34 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project storm by nathanmarz.

the class RebalanceOptions method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_wait_secs = true && (is_set_wait_secs());
    builder.append(present_wait_secs);
    if (present_wait_secs)
        builder.append(wait_secs);
    boolean present_num_workers = true && (is_set_num_workers());
    builder.append(present_num_workers);
    if (present_num_workers)
        builder.append(num_workers);
    boolean present_num_executors = true && (is_set_num_executors());
    builder.append(present_num_executors);
    if (present_num_executors)
        builder.append(num_executors);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 35 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project storm by nathanmarz.

the class SpoutSpec method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_spout_object = true && (is_set_spout_object());
    builder.append(present_spout_object);
    if (present_spout_object)
        builder.append(spout_object);
    boolean present_common = true && (is_set_common());
    builder.append(present_common);
    if (present_common)
        builder.append(common);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Aggregations

HashCodeBuilder (org.apache.commons.lang.builder.HashCodeBuilder)183 Writable (org.apache.hadoop.io.Writable)1