public void write(org.apache.thrift.protocol.TProtocol oprot, BlockletIndex struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.min_max_index != null) { if (struct.isSetMin_max_index()) { oprot.writeFieldBegin(MIN_MAX_INDEX_FIELD_DESC); struct.min_max_index.write(oprot); oprot.writeFieldEnd(); } } if (struct.b_tree_index != null) { if (struct.isSetB_tree_index()) { oprot.writeFieldBegin(B_TREE_INDEX_FIELD_DESC); struct.b_tree_index.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void validate() throws org.apache.thrift.TException { // check for required fields // alas, we cannot check 'num_rows' because it's a primitive and you chose the non-beans generator. if (file_name == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'file_name' was not present! Struct: " + toString()); } // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. if (block_index == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'block_index' was not present! Struct: " + toString()); } // check for sub-struct validity if (block_index != null) { block_index.validate(); } if (blocklet_info != null) { blocklet_info.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields // alas, we cannot check 'blocklet_length' because it's a primitive and you chose the non-beans generator. if (mutation == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'mutation' was not present! Struct: " + toString()); } if (blocklet_info == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'blocklet_info' was not present! Struct: " + toString()); } // check for sub-struct validity if (blocklet_index != null) { blocklet_index.validate(); } if (blocklet_info != null) { blocklet_info.validate(); } if (dictionary != null) { dictionary.validate(); } }