/** 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 COLUMN_VALUES: return isSetColumnValues(); case STALE: return isSetStale(); case PARTIAL: return isSetPartial(); } throw new java.lang.IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TResult(TResult other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumnValues()) { java.util.List<TColumnValue> __this__columnValues = new java.util.ArrayList<TColumnValue>(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } this.columnValues = __this__columnValues; } this.stale = other.stale; this.partial = other.partial; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); if (isSetRow()) hashCode = hashCode * 8191 + row.hashCode(); hashCode = hashCode * 8191 + ((isSetColumnValues()) ? 131071 : 524287); if (isSetColumnValues()) hashCode = hashCode * 8191 + columnValues.hashCode(); hashCode = hashCode * 8191 + ((isSetStale()) ? 131071 : 524287); if (isSetStale()) hashCode = hashCode * 8191 + ((stale) ? 131071 : 524287); hashCode = hashCode * 8191 + ((isSetPartial()) ? 131071 : 524287); if (isSetPartial()) hashCode = hashCode * 8191 + ((partial) ? 131071 : 524287); return hashCode; }
lastComparison = java.lang.Boolean.valueOf(isSetColumnValues()).compareTo(other.isSetColumnValues()); if (lastComparison != 0) { return lastComparison; if (isSetColumnValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnValues, other.columnValues); if (lastComparison != 0) {
public static Result resultFromThrift(TResult in) { if (in == null) { return null; } if (!in.isSetColumnValues() || in.getColumnValues().isEmpty()){ return in.isStale() ? EMPTY_RESULT_STALE : EMPTY_RESULT; } List<Cell> cells = new ArrayList<>(in.getColumnValues().size()); ExtendedCellBuilder builder = ExtendedCellBuilderFactory.create(CellBuilderType.SHALLOW_COPY); for (TColumnValue columnValue : in.getColumnValues()) { cells.add(toCell(builder, in.getRow(), columnValue)); } return Result.create(cells, null, in.isStale(), in.isPartial()); }
boolean this_present_columnValues = true && this.isSetColumnValues(); boolean that_present_columnValues = true && that.isSetColumnValues(); if (this_present_columnValues || that_present_columnValues) { if (!(this_present_columnValues && that_present_columnValues))
/** 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 COLUMN_VALUES: return isSetColumnValues(); } 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 COLUMN_VALUES: return isSetColumnValues(); } throw new IllegalStateException(); }
@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_columnValues = true && (isSetColumnValues()); list.add(present_columnValues); if (present_columnValues) list.add(columnValues); 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_columnValues = true && (isSetColumnValues()); list.add(present_columnValues); if (present_columnValues) list.add(columnValues); return list.hashCode(); }
public boolean equals(TResult 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_columnValues = true && this.isSetColumnValues(); boolean that_present_columnValues = true && that.isSetColumnValues(); if (this_present_columnValues || that_present_columnValues) { if (!(this_present_columnValues && that_present_columnValues)) return false; if (!this.columnValues.equals(that.columnValues)) return false; } return true; }
public boolean equals(TResult 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_columnValues = true && this.isSetColumnValues(); boolean that_present_columnValues = true && that.isSetColumnValues(); if (this_present_columnValues || that_present_columnValues) { if (!(this_present_columnValues && that_present_columnValues)) return false; if (!this.columnValues.equals(that.columnValues)) return false; } return true; }
@Override public int compareTo(TResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetColumnValues()).compareTo(other.isSetColumnValues()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnValues, other.columnValues); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(TResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); if (lastComparison != 0) { return lastComparison; } if (isSetRow()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetColumnValues()).compareTo(other.isSetColumnValues()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnValues, other.columnValues); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** * Performs a deep copy on <i>other</i>. */ public TResult(TResult other) { if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumnValues()) { List<TColumnValue> __this__columnValues = new ArrayList<TColumnValue>(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } this.columnValues = __this__columnValues; } }
/** * Performs a deep copy on <i>other</i>. */ public TResult(TResult other) { if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumnValues()) { List<TColumnValue> __this__columnValues = new ArrayList<TColumnValue>(other.columnValues.size()); for (TColumnValue other_element : other.columnValues) { __this__columnValues.add(new TColumnValue(other_element)); } this.columnValues = __this__columnValues; } }
/** 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 COLUMN_VALUES: return isSetColumnValues(); } throw new IllegalStateException(); }
@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_columnValues = true && (isSetColumnValues()); list.add(present_columnValues); if (present_columnValues) list.add(columnValues); 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 COLUMN_VALUES: return isSetColumnValues(); } 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 COLUMN_VALUES: return isSetColumnValues(); } throw new IllegalStateException(); }