@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_is_sorted = true && (isSetIs_sorted()); list.add(present_is_sorted); if (present_is_sorted) list.add(is_sorted); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_page_type = true && (isSetPage_type()); list.add(present_page_type); if (present_page_type) list.add(page_type.getValue()); boolean present_encoding = true && (isSetEncoding()); list.add(present_encoding); if (present_encoding) list.add(encoding.getValue()); boolean present_count = true; list.add(present_count); if (present_count) list.add(count); return list.hashCode(); }
@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(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DataPageHeader struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.num_values); oprot.writeI32(struct.encoding.getValue()); oprot.writeI32(struct.definition_level_encoding.getValue()); oprot.writeI32(struct.repetition_level_encoding.getValue()); java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetStatistics()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetStatistics()) { struct.statistics.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DataPageHeader struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.num_values); oprot.writeI32(struct.encoding.getValue()); oprot.writeI32(struct.definition_level_encoding.getValue()); oprot.writeI32(struct.repetition_level_encoding.getValue()); BitSet optionals = new BitSet(); if (struct.isSetStatistics()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetStatistics()) { struct.statistics.write(oprot); } }
@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 + ((isSetIs_sorted()) ? 131071 : 524287); if (isSetIs_sorted()) hashCode = hashCode * 8191 + ((is_sorted) ? 131071 : 524287); return hashCode; }
@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; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DictionaryPageHeader struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.num_values); oprot.writeI32(struct.encoding.getValue()); BitSet optionals = new BitSet(); if (struct.isSetIs_sorted()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetIs_sorted()) { oprot.writeBool(struct.is_sorted); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DictionaryPageHeader struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.num_values); oprot.writeI32(struct.encoding.getValue()); java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIs_sorted()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetIs_sorted()) { oprot.writeBool(struct.is_sorted); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PageEncodingStats struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.page_type.getValue()); oprot.writeI32(struct.encoding.getValue()); oprot.writeI32(struct.count); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PageEncodingStats struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.page_type.getValue()); oprot.writeI32(struct.encoding.getValue()); oprot.writeI32(struct.count); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetPage_type()) ? 131071 : 524287); if (isSetPage_type()) hashCode = hashCode * 8191 + page_type.getValue(); hashCode = hashCode * 8191 + ((isSetEncoding()) ? 131071 : 524287); if (isSetEncoding()) hashCode = hashCode * 8191 + encoding.getValue(); hashCode = hashCode * 8191 + count; return hashCode; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DataPageHeaderV2 struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.num_values); oprot.writeI32(struct.num_nulls); oprot.writeI32(struct.num_rows); oprot.writeI32(struct.encoding.getValue()); oprot.writeI32(struct.definition_levels_byte_length); oprot.writeI32(struct.repetition_levels_byte_length); java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIs_compressed()) { optionals.set(0); } if (struct.isSetStatistics()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetIs_compressed()) { oprot.writeBool(struct.is_compressed); } if (struct.isSetStatistics()) { struct.statistics.write(oprot); } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + num_values; hashCode = hashCode * 8191 + num_nulls; hashCode = hashCode * 8191 + num_rows; hashCode = hashCode * 8191 + ((isSetEncoding()) ? 131071 : 524287); if (isSetEncoding()) hashCode = hashCode * 8191 + encoding.getValue(); hashCode = hashCode * 8191 + definition_levels_byte_length; hashCode = hashCode * 8191 + repetition_levels_byte_length; hashCode = hashCode * 8191 + ((isSetIs_compressed()) ? 131071 : 524287); if (isSetIs_compressed()) hashCode = hashCode * 8191 + ((is_compressed) ? 131071 : 524287); hashCode = hashCode * 8191 + ((isSetStatistics()) ? 131071 : 524287); if (isSetStatistics()) hashCode = hashCode * 8191 + statistics.hashCode(); return hashCode; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DataPageHeaderV2 struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.num_values); oprot.writeI32(struct.num_nulls); oprot.writeI32(struct.num_rows); oprot.writeI32(struct.encoding.getValue()); oprot.writeI32(struct.definition_levels_byte_length); oprot.writeI32(struct.repetition_levels_byte_length); BitSet optionals = new BitSet(); if (struct.isSetIs_compressed()) { optionals.set(0); } if (struct.isSetStatistics()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetIs_compressed()) { oprot.writeBool(struct.is_compressed); } if (struct.isSetStatistics()) { struct.statistics.write(oprot); } }
if (struct.encoding != null) { oprot.writeFieldBegin(ENCODING_FIELD_DESC); oprot.writeI32(struct.encoding.getValue()); oprot.writeFieldEnd(); oprot.writeI32(struct.definition_level_encoding.getValue()); oprot.writeFieldEnd(); oprot.writeI32(struct.repetition_level_encoding.getValue()); oprot.writeFieldEnd();
public void write(org.apache.thrift.protocol.TProtocol oprot, DictionaryPageHeader struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(NUM_VALUES_FIELD_DESC); oprot.writeI32(struct.num_values); oprot.writeFieldEnd(); if (struct.encoding != null) { oprot.writeFieldBegin(ENCODING_FIELD_DESC); oprot.writeI32(struct.encoding.getValue()); oprot.writeFieldEnd(); } if (struct.isSetIs_sorted()) { oprot.writeFieldBegin(IS_SORTED_FIELD_DESC); oprot.writeBool(struct.is_sorted); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, PageEncodingStats struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.page_type != null) { oprot.writeFieldBegin(PAGE_TYPE_FIELD_DESC); oprot.writeI32(struct.page_type.getValue()); oprot.writeFieldEnd(); } if (struct.encoding != null) { oprot.writeFieldBegin(ENCODING_FIELD_DESC); oprot.writeI32(struct.encoding.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(COUNT_FIELD_DESC); oprot.writeI32(struct.count); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, DictionaryPageHeader struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(NUM_VALUES_FIELD_DESC); oprot.writeI32(struct.num_values); oprot.writeFieldEnd(); if (struct.encoding != null) { oprot.writeFieldBegin(ENCODING_FIELD_DESC); oprot.writeI32(struct.encoding.getValue()); oprot.writeFieldEnd(); } if (struct.isSetIs_sorted()) { oprot.writeFieldBegin(IS_SORTED_FIELD_DESC); oprot.writeBool(struct.is_sorted); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, PageEncodingStats struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.page_type != null) { oprot.writeFieldBegin(PAGE_TYPE_FIELD_DESC); oprot.writeI32(struct.page_type.getValue()); oprot.writeFieldEnd(); } if (struct.encoding != null) { oprot.writeFieldBegin(ENCODING_FIELD_DESC); oprot.writeI32(struct.encoding.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(COUNT_FIELD_DESC); oprot.writeI32(struct.count); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }