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