/** 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_COLUMNS: return isSetTable_columns(); case NUMBER_OF_BUCKETS: return isSetNumber_of_buckets(); } throw new IllegalStateException(); }
@Override public int compareTo(BucketingInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTable_columns()).compareTo(other.isSetTable_columns()); if (lastComparison != 0) { return lastComparison; } if (isSetTable_columns()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_columns, other.table_columns); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetNumber_of_buckets()).compareTo(other.isSetNumber_of_buckets()); if (lastComparison != 0) { return lastComparison; } if (isSetNumber_of_buckets()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number_of_buckets, other.number_of_buckets); if (lastComparison != 0) { return lastComparison; } } return 0; }
if (!struct.isSetNumber_of_buckets()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'number_of_buckets' was not found in serialized data! Struct: " + toString());