@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(); }
first = false; if (isSetHighValue()) { if (!first) sb.append(", "); sb.append("highValue:");
public void write(org.apache.thrift.protocol.TProtocol oprot, LongColumnStatsData struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetLowValue()) { oprot.writeFieldBegin(LOW_VALUE_FIELD_DESC); oprot.writeI64(struct.lowValue); oprot.writeFieldEnd(); } if (struct.isSetHighValue()) { oprot.writeFieldBegin(HIGH_VALUE_FIELD_DESC); oprot.writeI64(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(); }
boolean this_present_highValue = true && this.isSetHighValue(); boolean that_present_highValue = true && that.isSetHighValue(); if (this_present_highValue || that_present_highValue) { if (!(this_present_highValue && that_present_highValue))
lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); if (lastComparison != 0) { return lastComparison; if (isSetHighValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, LongColumnStatsData 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.writeI64(struct.lowValue); } if (struct.isSetHighValue()) { oprot.writeI64(struct.highValue); } if (struct.isSetBitVectors()) { oprot.writeBinary(struct.bitVectors); } }
LongSubType subType = LongSubType.valueOf(name); LongColumnStatsData lstats = statData.getLongStats(); if (lstats.isSetHighValue()) { oneRow.add(subType.cast(lstats.getHighValue())); } else { if (statData == null) return null; LongColumnStatsData lstats = statData.getLongStats(); if (!lstats.isSetHighValue()) { continue;
LongSubType subType = LongSubType.valueOf(name); LongColumnStatsData lstats = statData.getLongStats(); if (lstats.isSetHighValue()) { oneRow.add(subType.cast(lstats.getHighValue())); } else { if (statData == null) return null; LongColumnStatsData lstats = statData.getLongStats(); if (!lstats.isSetHighValue()) { continue;
LongColumnStatsData longStatsData = columnStatistics.getStatsData().getLongStats(); OptionalLong min = longStatsData.isSetLowValue() ? OptionalLong.of(longStatsData.getLowValue()) : OptionalLong.empty(); OptionalLong max = longStatsData.isSetHighValue() ? OptionalLong.of(longStatsData.getHighValue()) : OptionalLong.empty(); OptionalLong nullsCount = longStatsData.isSetNumNulls() ? fromMetastoreNullsCount(longStatsData.getNumNulls()) : OptionalLong.empty(); OptionalLong distinctValuesCount = longStatsData.isSetNumDVs() ? OptionalLong.of(longStatsData.getNumDVs()) : OptionalLong.empty();
LongColumnStatsData oldLongStatsData = oldStatObj.getStatsData().getLongStats(); LongColumnStatsData newLongStatsData = newStatObj.getStatsData().getLongStats(); if (newLongStatsData.isSetHighValue()) { oldLongStatsData.setHighValue(newLongStatsData.getHighValue());
longStats.isSetBitVectors() ? longStats.getBitVectors() : null, longStats.isSetLowValue() ? longStats.getLowValue() : null, longStats.isSetHighValue() ? longStats.getHighValue() : null); } else if (statsObj.getStatsData().isSetDoubleStats()) { DoubleColumnStatsData doubleStats = statsObj.getStatsData().getDoubleStats();
longStats.isSetBitVectors() ? longStats.getBitVectors() : null, longStats.isSetLowValue() ? longStats.getLowValue() : null, longStats.isSetHighValue() ? longStats.getHighValue() : null); } else if (statsObj.getStatsData().isSetDoubleStats()) { DoubleColumnStatsData doubleStats = statsObj.getStatsData().getDoubleStats();
@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(); }
/** 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, LongColumnStatsData 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.writeI64(struct.lowValue); } if (struct.isSetHighValue()) { oprot.writeI64(struct.highValue); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, LongColumnStatsData 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.writeI64(struct.lowValue); } if (struct.isSetHighValue()) { oprot.writeI64(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(); }
@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(); }