public DictionaryPageHeader( int num_values, Encoding encoding) { this(); this.num_values = num_values; setNum_valuesIsSet(true); this.encoding = encoding; }
/** * Number of values in the dictionary * */ public DictionaryPageHeader setNum_values(int num_values) { this.num_values = num_values; setNum_valuesIsSet(true); return this; }
/** * Number of values in the dictionary * */ public DictionaryPageHeader setNum_values(int num_values) { this.num_values = num_values; setNum_valuesIsSet(true); return this; }
public DictionaryPageHeader( int num_values, Encoding encoding) { this(); this.num_values = num_values; setNum_valuesIsSet(true); this.encoding = encoding; }
@Override public void clear() { setNum_valuesIsSet(false); this.num_values = 0; this.encoding = null; setIs_sortedIsSet(false); this.is_sorted = false; }
@Override public void clear() { setNum_valuesIsSet(false); this.num_values = 0; this.encoding = null; setIs_sortedIsSet(false); this.is_sorted = false; }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, DictionaryPageHeader struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.num_values = iprot.readI32(); struct.setNum_valuesIsSet(true); struct.encoding = org.apache.parquet.format.Encoding.findByValue(iprot.readI32()); struct.setEncodingIsSet(true); java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.is_sorted = iprot.readBool(); struct.setIs_sortedIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, DictionaryPageHeader struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.num_values = iprot.readI32(); struct.setNum_valuesIsSet(true); struct.encoding = org.apache.parquet.format.Encoding.findByValue(iprot.readI32()); struct.setEncodingIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.is_sorted = iprot.readBool(); struct.setIs_sortedIsSet(true); } } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.num_values = iprot.readI32(); struct.setNum_valuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.num_values = iprot.readI32(); struct.setNum_valuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);