public BloomFilterPageHeader deepCopy() { return new BloomFilterPageHeader(this); }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof BloomFilterPageHeader) return this.equals((BloomFilterPageHeader)that); return false; }
public java.lang.Object getFieldValue(_Fields field) { switch (field) { case NUM_BYTES: return getNumBytes(); case ALGORITHM: return getAlgorithm(); case HASH: return getHash(); } throw new java.lang.IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new java.lang.IllegalArgumentException(); } switch (field) { case NUM_BYTES: return isSetNumBytes(); case ALGORITHM: return isSetAlgorithm(); case HASH: return isSetHash(); } throw new java.lang.IllegalStateException(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + numBytes; hashCode = hashCode * 8191 + ((isSetAlgorithm()) ? 131071 : 524287); if (isSetAlgorithm()) hashCode = hashCode * 8191 + algorithm.hashCode(); hashCode = hashCode * 8191 + ((isSetHash()) ? 131071 : 524287); if (isSetHash()) hashCode = hashCode * 8191 + hash.hashCode(); return hashCode; }
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); struct.algorithm = new BloomFilterAlgorithm(); struct.algorithm.read(iprot); struct.setAlgorithmIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.hash = new BloomFilterHash(); struct.hash.read(iprot); struct.setHashIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (!struct.isSetNumBytes()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numBytes' was not found in serialized data! Struct: " + toString()); struct.validate();
struct.bloom_filter_page_header = new BloomFilterPageHeader(); struct.bloom_filter_page_header.read(iprot); struct.setBloom_filter_page_headerIsSet(true);
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
@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; }
lastComparison = java.lang.Boolean.valueOf(isSetNumBytes()).compareTo(other.isSetNumBytes()); if (lastComparison != 0) { return lastComparison; if (isSetNumBytes()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numBytes, other.numBytes); if (lastComparison != 0) { lastComparison = java.lang.Boolean.valueOf(isSetAlgorithm()).compareTo(other.isSetAlgorithm()); if (lastComparison != 0) { return lastComparison; if (isSetAlgorithm()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.algorithm, other.algorithm); if (lastComparison != 0) { lastComparison = java.lang.Boolean.valueOf(isSetHash()).compareTo(other.isSetHash()); if (lastComparison != 0) { return lastComparison; if (isSetHash()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hash, other.hash); if (lastComparison != 0) {
boolean this_present_algorithm = true && this.isSetAlgorithm(); boolean that_present_algorithm = true && that.isSetAlgorithm(); if (this_present_algorithm || that_present_algorithm) { if (!(this_present_algorithm && that_present_algorithm)) boolean this_present_hash = true && this.isSetHash(); boolean that_present_hash = true && that.isSetHash(); if (this_present_hash || that_present_hash) { if (!(this_present_hash && that_present_hash))
case 9: // BLOOM_FILTER_PAGE_HEADER if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.bloom_filter_page_header = new BloomFilterPageHeader(); struct.bloom_filter_page_header.read(iprot); struct.setBloom_filter_page_headerIsSet(true); } else {
/** * Performs a deep copy on <i>other</i>. */ public BloomFilterPageHeader(BloomFilterPageHeader other) { __isset_bitfield = other.__isset_bitfield; this.numBytes = other.numBytes; if (other.isSetAlgorithm()) { this.algorithm = new BloomFilterAlgorithm(other.algorithm); } if (other.isSetHash()) { this.hash = new BloomFilterHash(other.hash); } }
if (!(this_present_bloom_filter_page_header && that_present_bloom_filter_page_header)) return false; if (!this.bloom_filter_page_header.equals(that.bloom_filter_page_header)) return false;
/** * Performs a deep copy on <i>other</i>. */ public PageHeader(PageHeader other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetType()) { this.type = other.type; } this.uncompressed_page_size = other.uncompressed_page_size; this.compressed_page_size = other.compressed_page_size; this.crc = other.crc; if (other.isSetData_page_header()) { this.data_page_header = new DataPageHeader(other.data_page_header); } if (other.isSetIndex_page_header()) { this.index_page_header = new IndexPageHeader(other.index_page_header); } if (other.isSetDictionary_page_header()) { this.dictionary_page_header = new DictionaryPageHeader(other.dictionary_page_header); } if (other.isSetData_page_header_v2()) { this.data_page_header_v2 = new DataPageHeaderV2(other.data_page_header_v2); } if (other.isSetBloom_filter_page_header()) { this.bloom_filter_page_header = new BloomFilterPageHeader(other.bloom_filter_page_header); } }