Search in sources :

Example 11 with HashCodeBuilder

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

the class HiveLockObject method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(pathNames);
    boolean data_present = data == null;
    builder.append(data_present);
    if (data_present) {
        builder.append(data);
    }
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 12 with HashCodeBuilder

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

the class ExprNodeFieldDesc method hashCode.

@Override
public int hashCode() {
    int superHashCode = super.hashCode();
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.appendSuper(superHashCode);
    builder.append(desc);
    builder.append(fieldName);
    builder.append(isList);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 13 with HashCodeBuilder

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

the class AuthenticationException method hashCode.

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

Example 14 with HashCodeBuilder

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

the class AuthorizationException method hashCode.

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

Example 15 with HashCodeBuilder

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

the class KeyCount 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_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