Search in sources :

Example 16 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project logprocessing by cloudian.

the class KeySlice method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_key = true && (isSetKey());
    builder.append(present_key);
    if (present_key)
        builder.append(key);
    boolean present_columns = true && (isSetColumns());
    builder.append(present_columns);
    if (present_columns)
        builder.append(columns);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 17 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project logprocessing by cloudian.

the class KsDef method hashCode.

@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;
    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);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 18 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project logprocessing by cloudian.

the class SliceRange method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_start = true && (isSetStart());
    builder.append(present_start);
    if (present_start)
        builder.append(start);
    boolean present_finish = true && (isSetFinish());
    builder.append(present_finish);
    if (present_finish)
        builder.append(finish);
    boolean present_reversed = true;
    builder.append(present_reversed);
    if (present_reversed)
        builder.append(reversed);
    boolean present_count = true;
    builder.append(present_count);
    if (present_count)
        builder.append(count);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 19 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project logprocessing by cloudian.

the class ColumnDef method hashCode.

@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_validation_class = true && (isSetValidation_class());
    builder.append(present_validation_class);
    if (present_validation_class)
        builder.append(validation_class);
    boolean present_index_type = true && (isSetIndex_type());
    builder.append(present_index_type);
    if (present_index_type)
        builder.append(index_type.getValue());
    boolean present_index_name = true && (isSetIndex_name());
    builder.append(present_index_name);
    if (present_index_name)
        builder.append(index_name);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 20 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project logprocessing by cloudian.

the class IndexClause method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_expressions = true && (isSetExpressions());
    builder.append(present_expressions);
    if (present_expressions)
        builder.append(expressions);
    boolean present_start_key = true && (isSetStart_key());
    builder.append(present_start_key);
    if (present_start_key)
        builder.append(start_key);
    boolean present_count = true;
    builder.append(present_count);
    if (present_count)
        builder.append(count);
    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