/** * The size of bitset in bytes * */ public BloomFilterPageHeader setNumBytes(int numBytes) { this.numBytes = numBytes; setNumBytesIsSet(true); return this; }
public BloomFilterPageHeader( int numBytes, BloomFilterAlgorithm algorithm, BloomFilterHash hash) { this(); this.numBytes = numBytes; setNumBytesIsSet(true); this.algorithm = algorithm; this.hash = hash; }
@Override public void clear() { setNumBytesIsSet(false); this.numBytes = 0; this.algorithm = null; this.hash = null; }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, BloomFilterPageHeader struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.numBytes = iprot.readI32(); struct.setNumBytesIsSet(true); struct.algorithm = new BloomFilterAlgorithm(); struct.algorithm.read(iprot); struct.setAlgorithmIsSet(true); struct.hash = new BloomFilterHash(); struct.hash.read(iprot); struct.setHashIsSet(true); } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.numBytes = iprot.readI32(); struct.setNumBytesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);