@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(); }
list.add(present_type); if (present_type) list.add(type.getValue());
@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 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 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, PageHeader struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.type.getValue()); oprot.writeI32(struct.uncompressed_page_size); oprot.writeI32(struct.compressed_page_size);
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PageHeader struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.type.getValue()); oprot.writeI32(struct.uncompressed_page_size); oprot.writeI32(struct.compressed_page_size);
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, 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(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287); if (isSetType()) hashCode = hashCode * 8191 + type.getValue(); hashCode = hashCode * 8191 + uncompressed_page_size; hashCode = hashCode * 8191 + compressed_page_size; hashCode = hashCode * 8191 + ((isSetCrc()) ? 131071 : 524287); if (isSetCrc()) hashCode = hashCode * 8191 + crc; hashCode = hashCode * 8191 + ((isSetData_page_header()) ? 131071 : 524287); if (isSetData_page_header()) hashCode = hashCode * 8191 + data_page_header.hashCode(); hashCode = hashCode * 8191 + ((isSetIndex_page_header()) ? 131071 : 524287); if (isSetIndex_page_header()) hashCode = hashCode * 8191 + index_page_header.hashCode(); hashCode = hashCode * 8191 + ((isSetDictionary_page_header()) ? 131071 : 524287); if (isSetDictionary_page_header()) hashCode = hashCode * 8191 + dictionary_page_header.hashCode(); hashCode = hashCode * 8191 + ((isSetData_page_header_v2()) ? 131071 : 524287); if (isSetData_page_header_v2()) hashCode = hashCode * 8191 + data_page_header_v2.hashCode(); hashCode = hashCode * 8191 + ((isSetBloom_filter_page_header()) ? 131071 : 524287); if (isSetBloom_filter_page_header()) hashCode = hashCode * 8191 + bloom_filter_page_header.hashCode(); return hashCode; }
if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd();
if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd();