/** 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 ROW: return isSetRow(); case COLUMNS: return isSetColumns(); case SORTED_COLUMNS: return isSetSortedColumns(); } throw new java.lang.IllegalStateException(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); if (isSetRow()) hashCode = hashCode * 8191 + row.hashCode(); hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); if (isSetColumns()) hashCode = hashCode * 8191 + columns.hashCode(); hashCode = hashCode * 8191 + ((isSetSortedColumns()) ? 131071 : 524287); if (isSetSortedColumns()) hashCode = hashCode * 8191 + sortedColumns.hashCode(); return hashCode; }
if (isSetSortedColumns()) { if (!first) sb.append(", "); sb.append("sortedColumns:");
lastComparison = java.lang.Boolean.valueOf(isSetSortedColumns()).compareTo(other.isSetSortedColumns()); if (lastComparison != 0) { return lastComparison; if (isSetSortedColumns()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortedColumns, other.sortedColumns); if (lastComparison != 0) {
boolean this_present_sortedColumns = true && this.isSetSortedColumns(); boolean that_present_sortedColumns = true && that.isSetSortedColumns(); if (this_present_sortedColumns || that_present_sortedColumns) { if (!(this_present_sortedColumns && that_present_sortedColumns))
/** * Performs a deep copy on <i>other</i>. */ public TRowResult(TRowResult other) { if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumns()) { java.util.Map<java.nio.ByteBuffer,TCell> __this__columns = new java.util.HashMap<java.nio.ByteBuffer,TCell>(other.columns.size()); for (java.util.Map.Entry<java.nio.ByteBuffer, TCell> other_element : other.columns.entrySet()) { java.nio.ByteBuffer other_element_key = other_element.getKey(); TCell other_element_value = other_element.getValue(); java.nio.ByteBuffer __this__columns_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); TCell __this__columns_copy_value = new TCell(other_element_value); __this__columns.put(__this__columns_copy_key, __this__columns_copy_value); } this.columns = __this__columns; } if (other.isSetSortedColumns()) { java.util.List<TColumn> __this__sortedColumns = new java.util.ArrayList<TColumn>(other.sortedColumns.size()); for (TColumn other_element : other.sortedColumns) { __this__sortedColumns.add(new TColumn(other_element)); } this.sortedColumns = __this__sortedColumns; } }
optionals.set(1); if (struct.isSetSortedColumns()) { optionals.set(2); if (struct.isSetSortedColumns()) {
if (struct.isSetSortedColumns()) { oprot.writeFieldBegin(SORTED_COLUMNS_FIELD_DESC);
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_row = true && (isSetRow()); list.add(present_row); if (present_row) list.add(row); boolean present_columns = true && (isSetColumns()); list.add(present_columns); if (present_columns) list.add(columns); boolean present_sortedColumns = true && (isSetSortedColumns()); list.add(present_sortedColumns); if (present_sortedColumns) list.add(sortedColumns); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_row = true && (isSetRow()); list.add(present_row); if (present_row) list.add(row); boolean present_columns = true && (isSetColumns()); list.add(present_columns); if (present_columns) list.add(columns); boolean present_sortedColumns = true && (isSetSortedColumns()); list.add(present_sortedColumns); if (present_sortedColumns) list.add(sortedColumns); 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 ROW: return isSetRow(); case COLUMNS: return isSetColumns(); case SORTED_COLUMNS: return isSetSortedColumns(); } throw new 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 ROW: return isSetRow(); case COLUMNS: return isSetColumns(); case SORTED_COLUMNS: return isSetSortedColumns(); } throw new IllegalStateException(); }
if (isSetSortedColumns()) { if (!first) sb.append(", "); sb.append("sortedColumns:");
if (isSetSortedColumns()) { if (!first) sb.append(", "); sb.append("sortedColumns:");
/** * Performs a deep copy on <i>other</i>. */ public TRowResult(TRowResult other) { if (other.isSetRow()) { this.row = other.row; } if (other.isSetColumns()) { Map<ByteBuffer,TCell> __this__columns = new HashMap<ByteBuffer,TCell>(other.columns.size()); for (Map.Entry<ByteBuffer, TCell> other_element : other.columns.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); TCell other_element_value = other_element.getValue(); ByteBuffer __this__columns_copy_key = other_element_key; TCell __this__columns_copy_value = new TCell(other_element_value); __this__columns.put(__this__columns_copy_key, __this__columns_copy_value); } this.columns = __this__columns; } if (other.isSetSortedColumns()) { List<TColumn> __this__sortedColumns = new ArrayList<TColumn>(other.sortedColumns.size()); for (TColumn other_element : other.sortedColumns) { __this__sortedColumns.add(new TColumn(other_element)); } this.sortedColumns = __this__sortedColumns; } }
/** * Performs a deep copy on <i>other</i>. */ public TRowResult(TRowResult other) { if (other.isSetRow()) { this.row = other.row; } if (other.isSetColumns()) { Map<ByteBuffer,TCell> __this__columns = new HashMap<ByteBuffer,TCell>(other.columns.size()); for (Map.Entry<ByteBuffer, TCell> other_element : other.columns.entrySet()) { ByteBuffer other_element_key = other_element.getKey(); TCell other_element_value = other_element.getValue(); ByteBuffer __this__columns_copy_key = other_element_key; TCell __this__columns_copy_value = new TCell(other_element_value); __this__columns.put(__this__columns_copy_key, __this__columns_copy_value); } this.columns = __this__columns; } if (other.isSetSortedColumns()) { List<TColumn> __this__sortedColumns = new ArrayList<TColumn>(other.sortedColumns.size()); for (TColumn other_element : other.sortedColumns) { __this__sortedColumns.add(new TColumn(other_element)); } this.sortedColumns = __this__sortedColumns; } }
lastComparison = Boolean.valueOf(isSetSortedColumns()).compareTo(other.isSetSortedColumns()); if (lastComparison != 0) { return lastComparison; if (isSetSortedColumns()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortedColumns, other.sortedColumns); if (lastComparison != 0) {
public boolean equals(TRowResult that) { if (that == null) return false; boolean this_present_row = true && this.isSetRow(); boolean that_present_row = true && that.isSetRow(); if (this_present_row || that_present_row) { if (!(this_present_row && that_present_row)) return false; if (!this.row.equals(that.row)) 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)) return false; if (!this.columns.equals(that.columns)) return false; } boolean this_present_sortedColumns = true && this.isSetSortedColumns(); boolean that_present_sortedColumns = true && that.isSetSortedColumns(); if (this_present_sortedColumns || that_present_sortedColumns) { if (!(this_present_sortedColumns && that_present_sortedColumns)) return false; if (!this.sortedColumns.equals(that.sortedColumns)) return false; } return true; }
public boolean equals(TRowResult that) { if (that == null) return false; boolean this_present_row = true && this.isSetRow(); boolean that_present_row = true && that.isSetRow(); if (this_present_row || that_present_row) { if (!(this_present_row && that_present_row)) return false; if (!this.row.equals(that.row)) 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)) return false; if (!this.columns.equals(that.columns)) return false; } boolean this_present_sortedColumns = true && this.isSetSortedColumns(); boolean that_present_sortedColumns = true && that.isSetSortedColumns(); if (this_present_sortedColumns || that_present_sortedColumns) { if (!(this_present_sortedColumns && that_present_sortedColumns)) return false; if (!this.sortedColumns.equals(that.sortedColumns)) return false; } return true; }
optionals.set(1); if (struct.isSetSortedColumns()) { optionals.set(2); if (struct.isSetSortedColumns()) {