public boolean equals(BucketingInfo that) { if (that == null) return false; boolean this_present_table_columns = true && this.isSetTable_columns(); boolean that_present_table_columns = true && that.isSetTable_columns(); if (this_present_table_columns || that_present_table_columns) { if (!(this_present_table_columns && that_present_table_columns)) return false; if (!this.table_columns.equals(that.table_columns)) return false; } boolean this_present_number_of_buckets = true; boolean that_present_number_of_buckets = true; if (this_present_number_of_buckets || that_present_number_of_buckets) { if (!(this_present_number_of_buckets && that_present_number_of_buckets)) return false; if (this.number_of_buckets != that.number_of_buckets) return false; } return true; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_table_columns = true && (isSetTable_columns()); list.add(present_table_columns); if (present_table_columns) list.add(table_columns); boolean present_number_of_buckets = true; list.add(present_number_of_buckets); if (present_number_of_buckets) list.add(number_of_buckets); return list.hashCode(); }
/** 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 TABLE_COLUMNS: return isSetTable_columns(); case NUMBER_OF_BUCKETS: return isSetNumber_of_buckets(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public BucketingInfo(BucketingInfo other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTable_columns()) { List<ColumnSchema> __this__table_columns = new ArrayList<ColumnSchema>(other.table_columns.size()); for (ColumnSchema other_element : other.table_columns) { __this__table_columns.add(new ColumnSchema(other_element)); } this.table_columns = __this__table_columns; } this.number_of_buckets = other.number_of_buckets; }
@Override public int compareTo(BucketingInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTable_columns()).compareTo(other.isSetTable_columns()); if (lastComparison != 0) { return lastComparison; } if (isSetTable_columns()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_columns, other.table_columns); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetNumber_of_buckets()).compareTo(other.isSetNumber_of_buckets()); if (lastComparison != 0) { return lastComparison; } if (isSetNumber_of_buckets()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number_of_buckets, other.number_of_buckets); if (lastComparison != 0) { return lastComparison; } } return 0; }