@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_columns = true && (isSetColumns()); list.add(present_columns); if (present_columns) list.add(columns); boolean present_total_byte_size = true; list.add(present_total_byte_size); if (present_total_byte_size) list.add(total_byte_size); boolean present_num_rows = true; list.add(present_num_rows); if (present_num_rows) list.add(num_rows); boolean present_sorting_columns = true && (isSetSorting_columns()); list.add(present_sorting_columns); if (present_sorting_columns) list.add(sorting_columns); return list.hashCode(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); if (isSetColumns()) hashCode = hashCode * 8191 + columns.hashCode(); hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(total_byte_size); hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(num_rows); hashCode = hashCode * 8191 + ((isSetSorting_columns()) ? 131071 : 524287); if (isSetSorting_columns()) hashCode = hashCode * 8191 + sorting_columns.hashCode(); return hashCode; }
return true; boolean this_present_columns = true && this.isSetColumns(); boolean that_present_columns = true && that.isSetColumns(); if (this_present_columns || that_present_columns) { if (!(this_present_columns && that_present_columns))
return false; boolean this_present_columns = true && this.isSetColumns(); boolean that_present_columns = true && that.isSetColumns(); if (this_present_columns || that_present_columns) { if (!(this_present_columns && that_present_columns))
/** * Performs a deep copy on <i>other</i>. */ public RowGroup(RowGroup other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetColumns()) { List<ColumnChunk> __this__columns = new ArrayList<ColumnChunk>(other.columns.size()); for (ColumnChunk other_element : other.columns) { __this__columns.add(new ColumnChunk(other_element)); } this.columns = __this__columns; } this.total_byte_size = other.total_byte_size; this.num_rows = other.num_rows; if (other.isSetSorting_columns()) { List<SortingColumn> __this__sorting_columns = new ArrayList<SortingColumn>(other.sorting_columns.size()); for (SortingColumn other_element : other.sorting_columns) { __this__sorting_columns.add(new SortingColumn(other_element)); } this.sorting_columns = __this__sorting_columns; } }
/** * Performs a deep copy on <i>other</i>. */ public RowGroup(RowGroup other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetColumns()) { java.util.List<ColumnChunk> __this__columns = new java.util.ArrayList<ColumnChunk>(other.columns.size()); for (ColumnChunk other_element : other.columns) { __this__columns.add(new ColumnChunk(other_element)); } this.columns = __this__columns; } this.total_byte_size = other.total_byte_size; this.num_rows = other.num_rows; if (other.isSetSorting_columns()) { java.util.List<SortingColumn> __this__sorting_columns = new java.util.ArrayList<SortingColumn>(other.sorting_columns.size()); for (SortingColumn other_element : other.sorting_columns) { __this__sorting_columns.add(new SortingColumn(other_element)); } this.sorting_columns = __this__sorting_columns; } }
/** 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 COLUMNS: return isSetColumns(); case TOTAL_BYTE_SIZE: return isSetTotal_byte_size(); case NUM_ROWS: return isSetNum_rows(); case SORTING_COLUMNS: return isSetSorting_columns(); } throw new java.lang.IllegalStateException(); }
/** 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 COLUMNS: return isSetColumns(); case TOTAL_BYTE_SIZE: return isSetTotal_byte_size(); case NUM_ROWS: return isSetNum_rows(); case SORTING_COLUMNS: return isSetSorting_columns(); } throw new IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; if (isSetColumns()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); if (lastComparison != 0) { return lastComparison; if (isSetColumns()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); if (lastComparison != 0) {