/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NUM_VALUES: return isSetNum_values(); case NUM_NULLS: return isSetNum_nulls(); case NUM_ROWS: return isSetNum_rows(); case ENCODING: return isSetEncoding(); case DEFINITION_LEVELS_BYTE_LENGTH: return isSetDefinition_levels_byte_length(); case REPETITION_LEVELS_BYTE_LENGTH: return isSetRepetition_levels_byte_length(); case IS_COMPRESSED: return isSetIs_compressed(); case STATISTICS: return isSetStatistics(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NUM_VALUES: return isSetNum_values(); case NUM_NULLS: return isSetNum_nulls(); case NUM_ROWS: return isSetNum_rows(); case ENCODING: return isSetEncoding(); case DEFINITION_LEVELS_BYTE_LENGTH: return isSetDefinition_levels_byte_length(); case REPETITION_LEVELS_BYTE_LENGTH: return isSetRepetition_levels_byte_length(); case IS_COMPRESSED: return isSetIs_compressed(); case STATISTICS: return isSetStatistics(); } throw new IllegalStateException(); }
DataPageHeaderV2 typedOther = (DataPageHeaderV2)other; lastComparison = Boolean.valueOf(isSetNum_values()).compareTo(typedOther.isSetNum_values()); if (lastComparison != 0) { return lastComparison; if (isSetNum_values()) { lastComparison = TBaseHelper.compareTo(this.num_values, typedOther.num_values); if (lastComparison != 0) {
DataPageHeaderV2 typedOther = (DataPageHeaderV2)other; lastComparison = Boolean.valueOf(isSetNum_values()).compareTo(typedOther.isSetNum_values()); if (lastComparison != 0) { return lastComparison; if (isSetNum_values()) { lastComparison = TBaseHelper.compareTo(this.num_values, typedOther.num_values); if (lastComparison != 0) {
if (!isSetNum_values()) { throw new TProtocolException("Required field 'num_values' was not found in serialized data! Struct: " + toString());
if (!isSetNum_values()) { throw new TProtocolException("Required field 'num_values' was not found in serialized data! Struct: " + toString());