/** * Performs a deep copy on <i>other</i>. */ public TableStatsResult(TableStatsResult other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTableStats()) { List<ColumnStatisticsObj> __this__tableStats = new ArrayList<ColumnStatisticsObj>(other.tableStats.size()); for (ColumnStatisticsObj other_element : other.tableStats) { __this__tableStats.add(new ColumnStatisticsObj(other_element)); } this.tableStats = __this__tableStats; } this.isStatsCompliant = other.isStatsCompliant; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_tableStats = true && (isSetTableStats()); list.add(present_tableStats); if (present_tableStats) list.add(tableStats); boolean present_isStatsCompliant = true && (isSetIsStatsCompliant()); list.add(present_isStatsCompliant); if (present_isStatsCompliant) list.add(isStatsCompliant); 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_STATS: return isSetTableStats(); case IS_STATS_COMPLIANT: return isSetIsStatsCompliant(); } throw new IllegalStateException(); }
public boolean equals(TableStatsResult that) { if (that == null) return false; boolean this_present_tableStats = true && this.isSetTableStats(); boolean that_present_tableStats = true && that.isSetTableStats(); if (this_present_tableStats || that_present_tableStats) { if (!(this_present_tableStats && that_present_tableStats)) return false; if (!this.tableStats.equals(that.tableStats)) return false; } boolean this_present_isStatsCompliant = true && this.isSetIsStatsCompliant(); boolean that_present_isStatsCompliant = true && that.isSetIsStatsCompliant(); if (this_present_isStatsCompliant || that_present_isStatsCompliant) { if (!(this_present_isStatsCompliant && that_present_isStatsCompliant)) return false; if (this.isStatsCompliant != that.isStatsCompliant) return false; } return true; }
@Override public int compareTo(TableStatsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTableStats()).compareTo(other.isSetTableStats()); if (lastComparison != 0) { return lastComparison; } if (isSetTableStats()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableStats, other.tableStats); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetIsStatsCompliant()).compareTo(other.isSetIsStatsCompliant()); if (lastComparison != 0) { return lastComparison; } if (isSetIsStatsCompliant()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isStatsCompliant, other.isStatsCompliant); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTableStats()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableStats' is unset! Struct:" + toString()); } // check for sub-struct validity }
public boolean equals(TableStatsResult that) { if (that == null) return false; boolean this_present_tableStats = true && this.isSetTableStats(); boolean that_present_tableStats = true && that.isSetTableStats(); if (this_present_tableStats || that_present_tableStats) { if (!(this_present_tableStats && that_present_tableStats)) return false; if (!this.tableStats.equals(that.tableStats)) return false; } return true; }
public boolean equals(TableStatsResult that) { if (that == null) return false; boolean this_present_tableStats = true && this.isSetTableStats(); boolean that_present_tableStats = true && that.isSetTableStats(); if (this_present_tableStats || that_present_tableStats) { if (!(this_present_tableStats && that_present_tableStats)) return false; if (!this.tableStats.equals(that.tableStats)) return false; } return true; }
/** 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_STATS: return isSetTableStats(); } 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 TABLE_STATS: return isSetTableStats(); } 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 TABLE_STATS: return isSetTableStats(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_tableStats = true && (isSetTableStats()); builder.append(present_tableStats); if (present_tableStats) builder.append(tableStats); return builder.toHashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_tableStats = true && (isSetTableStats()); list.add(present_tableStats); if (present_tableStats) list.add(tableStats); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public TableStatsResult(TableStatsResult other) { if (other.isSetTableStats()) { List<ColumnStatisticsObj> __this__tableStats = new ArrayList<ColumnStatisticsObj>(); for (ColumnStatisticsObj other_element : other.tableStats) { __this__tableStats.add(new ColumnStatisticsObj(other_element)); } this.tableStats = __this__tableStats; } }
/** * Performs a deep copy on <i>other</i>. */ public TableStatsResult(TableStatsResult other) { if (other.isSetTableStats()) { List<ColumnStatisticsObj> __this__tableStats = new ArrayList<ColumnStatisticsObj>(other.tableStats.size()); for (ColumnStatisticsObj other_element : other.tableStats) { __this__tableStats.add(new ColumnStatisticsObj(other_element)); } this.tableStats = __this__tableStats; } }
/** * Performs a deep copy on <i>other</i>. */ public TableStatsResult(TableStatsResult other) { if (other.isSetTableStats()) { List<ColumnStatisticsObj> __this__tableStats = new ArrayList<ColumnStatisticsObj>(); for (ColumnStatisticsObj other_element : other.tableStats) { __this__tableStats.add(new ColumnStatisticsObj(other_element)); } this.tableStats = __this__tableStats; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTableStats()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableStats' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTableStats()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableStats' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTableStats()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableStats' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_tableStats = true && (isSetTableStats()); builder.append(present_tableStats); if (present_tableStats) builder.append(tableStats); return builder.toHashCode(); }