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(); }
throw new org.apache.thrift.protocol.TProtocolException("Required field 'count' was not found in serialized data! Struct: " + toString()); struct.validate();
throw new org.apache.thrift.protocol.TProtocolException("Required field 'count' was not found in serialized data! Struct: " + toString()); struct.validate();