@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_num_values = true; list.add(present_num_values); if (present_num_values) list.add(num_values); boolean present_encoding = true && (isSetEncoding()); list.add(present_encoding); if (present_encoding) list.add(encoding.getValue()); boolean present_definition_level_encoding = true && (isSetDefinition_level_encoding()); list.add(present_definition_level_encoding); if (present_definition_level_encoding) list.add(definition_level_encoding.getValue()); boolean present_repetition_level_encoding = true && (isSetRepetition_level_encoding()); list.add(present_repetition_level_encoding); if (present_repetition_level_encoding) list.add(repetition_level_encoding.getValue()); boolean present_statistics = true && (isSetStatistics()); list.add(present_statistics); if (present_statistics) list.add(statistics); 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 java.lang.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 java.lang.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 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(); }
lastComparison = Boolean.valueOf(isSetEncoding()).compareTo(other.isSetEncoding()); if (lastComparison != 0) { return lastComparison; if (isSetEncoding()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.encoding, other.encoding); if (lastComparison != 0) {
lastComparison = java.lang.Boolean.valueOf(isSetEncoding()).compareTo(other.isSetEncoding()); if (lastComparison != 0) { return lastComparison; if (isSetEncoding()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.encoding, other.encoding); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public DataPageHeader(DataPageHeader other) { __isset_bitfield = other.__isset_bitfield; 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_bitfield = other.__isset_bitfield; 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); } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + num_values; hashCode = hashCode * 8191 + ((isSetEncoding()) ? 131071 : 524287); if (isSetEncoding()) hashCode = hashCode * 8191 + encoding.getValue(); hashCode = hashCode * 8191 + ((isSetDefinition_level_encoding()) ? 131071 : 524287); if (isSetDefinition_level_encoding()) hashCode = hashCode * 8191 + definition_level_encoding.getValue(); hashCode = hashCode * 8191 + ((isSetRepetition_level_encoding()) ? 131071 : 524287); if (isSetRepetition_level_encoding()) hashCode = hashCode * 8191 + repetition_level_encoding.getValue(); hashCode = hashCode * 8191 + ((isSetStatistics()) ? 131071 : 524287); if (isSetStatistics()) hashCode = hashCode * 8191 + statistics.hashCode(); return hashCode; }
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))