public DecimalColumnStatsData(long numNulls, long numDVs) { this(); this.numNulls = numNulls; setNumNullsIsSet(true); this.numDVs = numDVs; setNumDVsIsSet(true); }
@Override public void clear() { this.lowValue = null; this.highValue = null; setNumNullsIsSet(false); this.numNulls = 0; setNumDVsIsSet(false); this.numDVs = 0; }
public DecimalColumnStatsData(Decimal lowValue, Decimal highValue, long numNulls, long numDVs) { this(); this.lowValue = lowValue; this.highValue = highValue; this.numNulls = numNulls; setNumNullsIsSet(true); this.numDVs = numDVs; setNumDVsIsSet(true); }
public void read(org.apache.thrift.protocol.TProtocol iprot, DecimalColumnStatsData struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // LOW_VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.lowValue = new Decimal(); struct.lowValue.read(iprot); struct.setLowValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // HIGH_VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.highValue = new Decimal(); struct.highValue.read(iprot); struct.setHighValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // NUM_NULLS if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.numNulls = iprot.readI64(); struct.setNumNullsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // NUM_DVS if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.numDVs = iprot.readI64(); struct.setNumDVsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); struct.validate(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, DecimalColumnStatsData struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.lowValue = new Decimal(); struct.lowValue.read(iprot); struct.setLowValueIsSet(true); struct.highValue = new Decimal(); struct.highValue.read(iprot); struct.setHighValueIsSet(true); struct.numNulls = iprot.readI64(); struct.setNumNullsIsSet(true); struct.numDVs = iprot.readI64(); struct.setNumDVsIsSet(true); }
public void setNumDVs(long numDVs) { this.numDVs = numDVs; setNumDVsIsSet(true); }