public void validate() throws org.apache.thrift.TException { // check for required fields if (type == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' was not present! Struct: " + toString()); } // alas, we cannot check 'uncompressed_page_size' because it's a primitive and you chose the non-beans generator. // alas, we cannot check 'compressed_page_size' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity if (data_page_header != null) { data_page_header.validate(); } if (index_page_header != null) { index_page_header.validate(); } if (dictionary_page_header != null) { dictionary_page_header.validate(); } if (data_page_header_v2 != null) { data_page_header_v2.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (type == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' was not present! Struct: " + toString()); } // alas, we cannot check 'uncompressed_page_size' because it's a primitive and you chose the non-beans generator. // alas, we cannot check 'compressed_page_size' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity if (data_page_header != null) { data_page_header.validate(); } if (index_page_header != null) { index_page_header.validate(); } if (dictionary_page_header != null) { dictionary_page_header.validate(); } if (data_page_header_v2 != null) { data_page_header_v2.validate(); } if (bloom_filter_page_header != null) { bloom_filter_page_header.validate(); } }
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, 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(); }
throw new org.apache.thrift.protocol.TProtocolException("Required field 'num_values' was not found in serialized data! Struct: " + toString()); struct.validate();
throw new org.apache.thrift.protocol.TProtocolException("Required field 'num_values' was not found in serialized data! Struct: " + toString()); struct.validate();