/** * Performs a deep copy on <i>other</i>. */ public BlockletInfo3(BlockletInfo3 other) { __isset_bitfield = other.__isset_bitfield; this.num_rows = other.num_rows; if (other.isSetColumn_data_chunks_offsets()) { List<Long> __this__column_data_chunks_offsets = new ArrayList<Long>(other.column_data_chunks_offsets); this.column_data_chunks_offsets = __this__column_data_chunks_offsets; } if (other.isSetColumn_data_chunks_length()) { List<Integer> __this__column_data_chunks_length = new ArrayList<Integer>(other.column_data_chunks_length); this.column_data_chunks_length = __this__column_data_chunks_length; } this.dimension_offsets = other.dimension_offsets; this.measure_offsets = other.measure_offsets; this.number_number_of_pages = other.number_number_of_pages; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_num_rows = true; list.add(present_num_rows); if (present_num_rows) list.add(num_rows); boolean present_column_data_chunks_offsets = true && (isSetColumn_data_chunks_offsets()); list.add(present_column_data_chunks_offsets); if (present_column_data_chunks_offsets) list.add(column_data_chunks_offsets); boolean present_column_data_chunks_length = true && (isSetColumn_data_chunks_length()); list.add(present_column_data_chunks_length); if (present_column_data_chunks_length) list.add(column_data_chunks_length); boolean present_dimension_offsets = true; list.add(present_dimension_offsets); if (present_dimension_offsets) list.add(dimension_offsets); boolean present_measure_offsets = true; list.add(present_measure_offsets); if (present_measure_offsets) list.add(measure_offsets); boolean present_number_number_of_pages = true; list.add(present_number_number_of_pages); if (present_number_number_of_pages) list.add(number_number_of_pages); return list.hashCode(); }
boolean this_present_column_data_chunks_offsets = true && this.isSetColumn_data_chunks_offsets(); boolean that_present_column_data_chunks_offsets = true && that.isSetColumn_data_chunks_offsets(); if (this_present_column_data_chunks_offsets || that_present_column_data_chunks_offsets) { if (!(this_present_column_data_chunks_offsets && that_present_column_data_chunks_offsets))
lastComparison = Boolean.valueOf(isSetColumn_data_chunks_offsets()).compareTo(other.isSetColumn_data_chunks_offsets()); if (lastComparison != 0) { return lastComparison; if (isSetColumn_data_chunks_offsets()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_data_chunks_offsets, other.column_data_chunks_offsets); if (lastComparison != 0) {
/** 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 NUM_ROWS: return isSetNum_rows(); case COLUMN_DATA_CHUNKS_OFFSETS: return isSetColumn_data_chunks_offsets(); case COLUMN_DATA_CHUNKS_LENGTH: return isSetColumn_data_chunks_length(); case DIMENSION_OFFSETS: return isSetDimension_offsets(); case MEASURE_OFFSETS: return isSetMeasure_offsets(); case NUMBER_NUMBER_OF_PAGES: return isSetNumber_number_of_pages(); } throw new IllegalStateException(); }