@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_num_values = true; builder.append(present_num_values); if (present_num_values) builder.append(num_values); boolean present_encoding = true && (isSetEncoding()); builder.append(present_encoding); if (present_encoding) builder.append(encoding.getValue()); boolean present_definition_level_encoding = true && (isSetDefinition_level_encoding()); builder.append(present_definition_level_encoding); if (present_definition_level_encoding) builder.append(definition_level_encoding.getValue()); boolean present_repetition_level_encoding = true && (isSetRepetition_level_encoding()); builder.append(present_repetition_level_encoding); if (present_repetition_level_encoding) builder.append(repetition_level_encoding.getValue()); boolean present_statistics = true && (isSetStatistics()); builder.append(present_statistics); if (present_statistics) builder.append(statistics); return builder.toHashCode(); }
/** 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 ENCODING: return isSetEncoding(); case DEFINITION_LEVEL_ENCODING: return isSetDefinition_level_encoding(); case REPETITION_LEVEL_ENCODING: return isSetRepetition_level_encoding(); 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 ENCODING: return isSetEncoding(); case DEFINITION_LEVEL_ENCODING: return isSetDefinition_level_encoding(); case REPETITION_LEVEL_ENCODING: return isSetRepetition_level_encoding(); case STATISTICS: return isSetStatistics(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public DataPageHeader(DataPageHeader other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.num_values = other.num_values; if (other.isSetEncoding()) { this.encoding = other.encoding; } if (other.isSetDefinition_level_encoding()) { this.definition_level_encoding = other.definition_level_encoding; } if (other.isSetRepetition_level_encoding()) { this.repetition_level_encoding = other.repetition_level_encoding; } if (other.isSetStatistics()) { this.statistics = new Statistics(other.statistics); } }
/** * Performs a deep copy on <i>other</i>. */ public DataPageHeader(DataPageHeader other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.num_values = other.num_values; if (other.isSetEncoding()) { this.encoding = other.encoding; } if (other.isSetDefinition_level_encoding()) { this.definition_level_encoding = other.definition_level_encoding; } if (other.isSetRepetition_level_encoding()) { this.repetition_level_encoding = other.repetition_level_encoding; } if (other.isSetStatistics()) { this.statistics = new Statistics(other.statistics); } }
lastComparison = Boolean.valueOf(isSetEncoding()).compareTo(typedOther.isSetEncoding()); if (lastComparison != 0) { return lastComparison; if (isSetEncoding()) { lastComparison = TBaseHelper.compareTo(this.encoding, typedOther.encoding); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetEncoding()).compareTo(typedOther.isSetEncoding()); if (lastComparison != 0) { return lastComparison; if (isSetEncoding()) { lastComparison = TBaseHelper.compareTo(this.encoding, typedOther.encoding); if (lastComparison != 0) {
boolean this_present_encoding = true && this.isSetEncoding(); boolean that_present_encoding = true && that.isSetEncoding(); if (this_present_encoding || that_present_encoding) { if (!(this_present_encoding && that_present_encoding))
boolean this_present_encoding = true && this.isSetEncoding(); boolean that_present_encoding = true && that.isSetEncoding(); if (this_present_encoding || that_present_encoding) { if (!(this_present_encoding && that_present_encoding))
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_num_values = true; builder.append(present_num_values); if (present_num_values) builder.append(num_values); boolean present_encoding = true && (isSetEncoding()); builder.append(present_encoding); if (present_encoding) builder.append(encoding.getValue()); boolean present_definition_level_encoding = true && (isSetDefinition_level_encoding()); builder.append(present_definition_level_encoding); if (present_definition_level_encoding) builder.append(definition_level_encoding.getValue()); boolean present_repetition_level_encoding = true && (isSetRepetition_level_encoding()); builder.append(present_repetition_level_encoding); if (present_repetition_level_encoding) builder.append(repetition_level_encoding.getValue()); boolean present_statistics = true && (isSetStatistics()); builder.append(present_statistics); if (present_statistics) builder.append(statistics); return builder.toHashCode(); }