@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_lowValue = true && (isSetLowValue()); list.add(present_lowValue); if (present_lowValue) list.add(lowValue); boolean present_highValue = true && (isSetHighValue()); list.add(present_highValue); if (present_highValue) list.add(highValue); boolean present_numNulls = true; list.add(present_numNulls); if (present_numNulls) list.add(numNulls); boolean present_numDVs = true; list.add(present_numDVs); if (present_numDVs) list.add(numDVs); boolean present_bitVectors = true && (isSetBitVectors()); list.add(present_bitVectors); if (present_bitVectors) list.add(bitVectors); return list.hashCode(); }
boolean first = true; if (isSetLowValue()) { sb.append("lowValue:"); sb.append(this.lowValue);
public void write(org.apache.thrift.protocol.TProtocol oprot, DoubleColumnStatsData struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetLowValue()) { oprot.writeFieldBegin(LOW_VALUE_FIELD_DESC); oprot.writeDouble(struct.lowValue); oprot.writeFieldEnd(); } if (struct.isSetHighValue()) { oprot.writeFieldBegin(HIGH_VALUE_FIELD_DESC); oprot.writeDouble(struct.highValue); oprot.writeFieldEnd(); } oprot.writeFieldBegin(NUM_NULLS_FIELD_DESC); oprot.writeI64(struct.numNulls); oprot.writeFieldEnd(); oprot.writeFieldBegin(NUM_DVS_FIELD_DESC); oprot.writeI64(struct.numDVs); oprot.writeFieldEnd(); if (struct.bitVectors != null) { if (struct.isSetBitVectors()) { oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); oprot.writeBinary(struct.bitVectors); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** 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 LOW_VALUE: return isSetLowValue(); case HIGH_VALUE: return isSetHighValue(); case NUM_NULLS: return isSetNumNulls(); case NUM_DVS: return isSetNumDVs(); case BIT_VECTORS: return isSetBitVectors(); } throw new IllegalStateException(); }
return false; boolean this_present_lowValue = true && this.isSetLowValue(); boolean that_present_lowValue = true && that.isSetLowValue(); if (this_present_lowValue || that_present_lowValue) { if (!(this_present_lowValue && that_present_lowValue))
lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); if (lastComparison != 0) { return lastComparison; if (isSetLowValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DoubleColumnStatsData struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.numNulls); oprot.writeI64(struct.numDVs); BitSet optionals = new BitSet(); if (struct.isSetLowValue()) { optionals.set(0); } if (struct.isSetHighValue()) { optionals.set(1); } if (struct.isSetBitVectors()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetLowValue()) { oprot.writeDouble(struct.lowValue); } if (struct.isSetHighValue()) { oprot.writeDouble(struct.highValue); } if (struct.isSetBitVectors()) { oprot.writeBinary(struct.bitVectors); } }
DoubleSubType subType = DoubleSubType.valueOf(name); DoubleColumnStatsData dstats = statData.getDoubleStats(); if (dstats.isSetLowValue()) { oneRow.add(subType.cast(dstats.getLowValue())); } else { if (statData == null) return null; DoubleColumnStatsData dstats = statData.getDoubleStats(); if (!dstats.isSetLowValue()) { continue;
DoubleSubType subType = DoubleSubType.valueOf(name); DoubleColumnStatsData dstats = statData.getDoubleStats(); if (dstats.isSetLowValue()) { oneRow.add(subType.cast(dstats.getLowValue())); } else { if (statData == null) return null; DoubleColumnStatsData dstats = statData.getDoubleStats(); if (!dstats.isSetLowValue()) { continue;
OptionalDouble min = doubleStatsData.isSetLowValue() ? OptionalDouble.of(doubleStatsData.getLowValue()) : OptionalDouble.empty(); OptionalDouble max = doubleStatsData.isSetHighValue() ? OptionalDouble.of(doubleStatsData.getHighValue()) : OptionalDouble.empty(); OptionalLong nullsCount = doubleStatsData.isSetNumNulls() ? fromMetastoreNullsCount(doubleStatsData.getNumNulls()) : OptionalLong.empty();
oldDoubleStatsData.setHighValue(newDoubleStatsData.getHighValue()); if (newDoubleStatsData.isSetLowValue()) { oldDoubleStatsData.setLowValue(newDoubleStatsData.getLowValue());
doubleStats.isSetNumDVs() ? doubleStats.getNumDVs() : null, doubleStats.isSetBitVectors() ? doubleStats.getBitVectors() : null, doubleStats.isSetLowValue() ? doubleStats.getLowValue() : null, doubleStats.isSetHighValue() ? doubleStats.getHighValue() : null); } else if (statsObj.getStatsData().isSetDecimalStats()) {
doubleStats.isSetNumDVs() ? doubleStats.getNumDVs() : null, doubleStats.isSetBitVectors() ? doubleStats.getBitVectors() : null, doubleStats.isSetLowValue() ? doubleStats.getLowValue() : null, doubleStats.isSetHighValue() ? doubleStats.getHighValue() : null); } else if (statsObj.getStatsData().isSetDecimalStats()) {
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lowValue = true && (isSetLowValue()); builder.append(present_lowValue); if (present_lowValue) builder.append(lowValue); boolean present_highValue = true && (isSetHighValue()); builder.append(present_highValue); if (present_highValue) builder.append(highValue); boolean present_numNulls = true; builder.append(present_numNulls); if (present_numNulls) builder.append(numNulls); boolean present_numDVs = true; builder.append(present_numDVs); if (present_numDVs) builder.append(numDVs); return builder.toHashCode(); }
/** 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 LOW_VALUE: return isSetLowValue(); case HIGH_VALUE: return isSetHighValue(); case NUM_NULLS: return isSetNumNulls(); case NUM_DVS: return isSetNumDVs(); } throw new IllegalStateException(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, DoubleColumnStatsData struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetLowValue()) { oprot.writeFieldBegin(LOW_VALUE_FIELD_DESC); oprot.writeDouble(struct.lowValue); oprot.writeFieldEnd(); } if (struct.isSetHighValue()) { oprot.writeFieldBegin(HIGH_VALUE_FIELD_DESC); oprot.writeDouble(struct.highValue); oprot.writeFieldEnd(); } oprot.writeFieldBegin(NUM_NULLS_FIELD_DESC); oprot.writeI64(struct.numNulls); oprot.writeFieldEnd(); oprot.writeFieldBegin(NUM_DVS_FIELD_DESC); oprot.writeI64(struct.numDVs); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** 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 LOW_VALUE: return isSetLowValue(); case HIGH_VALUE: return isSetHighValue(); case NUM_NULLS: return isSetNumNulls(); case NUM_DVS: return isSetNumDVs(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DoubleColumnStatsData struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.numNulls); oprot.writeI64(struct.numDVs); BitSet optionals = new BitSet(); if (struct.isSetLowValue()) { optionals.set(0); } if (struct.isSetHighValue()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetLowValue()) { oprot.writeDouble(struct.lowValue); } if (struct.isSetHighValue()) { oprot.writeDouble(struct.highValue); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DoubleColumnStatsData struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.numNulls); oprot.writeI64(struct.numDVs); BitSet optionals = new BitSet(); if (struct.isSetLowValue()) { optionals.set(0); } if (struct.isSetHighValue()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetLowValue()) { oprot.writeDouble(struct.lowValue); } if (struct.isSetHighValue()) { oprot.writeDouble(struct.highValue); } }
/** 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 LOW_VALUE: return isSetLowValue(); case HIGH_VALUE: return isSetHighValue(); case NUM_NULLS: return isSetNumNulls(); case NUM_DVS: return isSetNumDVs(); case BIT_VECTORS: return isSetBitVectors(); } throw new IllegalStateException(); }