public PageEncodingStats deepCopy() { return new PageEncodingStats(this); }
public java.lang.Object getFieldValue(_Fields field) { switch (field) { case PAGE_TYPE: return getPage_type(); case ENCODING: return getEncoding(); case COUNT: return getCount(); } throw new java.lang.IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof PageEncodingStats) return this.equals((PageEncodingStats)that); return false; }
/** * Performs a deep copy on <i>other</i>. */ public PageEncodingStats(PageEncodingStats other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetPage_type()) { this.page_type = other.page_type; } if (other.isSetEncoding()) { this.encoding = other.encoding; } this.count = other.count; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case PAGE_TYPE: if (value == null) { unsetPage_type(); } else { setPage_type((PageType)value); } break; case ENCODING: if (value == null) { unsetEncoding(); } else { setEncoding((Encoding)value); } break; case COUNT: if (value == null) { unsetCount(); } else { setCount((Integer)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.page_type = org.apache.parquet.format.PageType.findByValue(iprot.readI32()); struct.setPage_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.encoding = org.apache.parquet.format.Encoding.findByValue(iprot.readI32()); struct.setEncodingIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.count = iprot.readI32(); struct.setCountIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (!struct.isSetCount()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'count' was not found in serialized data! Struct: " + toString()); struct.validate();
/** 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 IllegalArgumentException(); } switch (field) { case PAGE_TYPE: return isSetPage_type(); case ENCODING: return isSetEncoding(); case COUNT: return isSetCount(); } throw new IllegalStateException(); }
for (int _i31 = 0; _i31 < _list29.size; ++_i31) _elem30 = new PageEncodingStats(); _elem30.read(iprot); struct.encoding_stats.add(_elem30);
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); } }
public void setFieldValue(_Fields field, java.lang.Object value) { switch (field) { case PAGE_TYPE: if (value == null) { unsetPage_type(); } else { setPage_type((PageType)value); } break; case ENCODING: if (value == null) { unsetEncoding(); } else { setEncoding((Encoding)value); } break; case COUNT: if (value == null) { unsetCount(); } else { setCount((java.lang.Integer)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.page_type = org.apache.parquet.format.PageType.findByValue(iprot.readI32()); struct.setPage_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.encoding = org.apache.parquet.format.Encoding.findByValue(iprot.readI32()); struct.setEncodingIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.count = iprot.readI32(); struct.setCountIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (!struct.isSetCount()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'count' was not found in serialized data! Struct: " + toString()); struct.validate();
/** 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 PAGE_TYPE: return isSetPage_type(); case ENCODING: return isSetEncoding(); case COUNT: return isSetCount(); } throw new java.lang.IllegalStateException(); }
for (int _i31 = 0; _i31 < _list29.size; ++_i31) _elem30 = new PageEncodingStats(); _elem30.read(iprot); struct.encoding_stats.add(_elem30);
/** * Performs a deep copy on <i>other</i>. */ public PageEncodingStats(PageEncodingStats other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetPage_type()) { this.page_type = other.page_type; } if (other.isSetEncoding()) { this.encoding = other.encoding; } this.count = other.count; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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); } }
public Object getFieldValue(_Fields field) { switch (field) { case PAGE_TYPE: return getPage_type(); case ENCODING: return getEncoding(); case COUNT: return getCount(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetPage_type()).compareTo(other.isSetPage_type()); if (lastComparison != 0) { return lastComparison; if (isSetPage_type()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page_type, other.page_type); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetEncoding()).compareTo(other.isSetEncoding()); if (lastComparison != 0) { return lastComparison; if (isSetEncoding()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.encoding, other.encoding); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetCount()).compareTo(other.isSetCount()); if (lastComparison != 0) { return lastComparison; if (isSetCount()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.count, other.count); if (lastComparison != 0) {
for (int _i11 = 0; _i11 < _list9.size; ++_i11) _elem10 = new PageEncodingStats(); _elem10.read(iprot); struct.encoding_stats.add(_elem10);
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetPage_type()) ? 131071 : 524287); if (isSetPage_type()) hashCode = hashCode * 8191 + page_type.getValue(); hashCode = hashCode * 8191 + ((isSetEncoding()) ? 131071 : 524287); if (isSetEncoding()) hashCode = hashCode * 8191 + encoding.getValue(); hashCode = hashCode * 8191 + count; return hashCode; }
public PageEncodingStats deepCopy() { return new PageEncodingStats(this); }