@Override public boolean isSetBitVectors() { if (ndvEstimator != null) { updateBitVectors(); } return super.isSetBitVectors(); }
/** * Performs a deep copy on <i>other</i>. */ public LongColumnStatsData(LongColumnStatsData other) { __isset_bitfield = other.__isset_bitfield; this.lowValue = other.lowValue; this.highValue = other.highValue; this.numNulls = other.numNulls; this.numDVs = other.numDVs; if (other.isSetBitVectors()) { this.bitVectors = org.apache.thrift.TBaseHelper.copyBinary(other.bitVectors); } }
@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(); }
sb.append(this.numDVs); first = false; if (isSetBitVectors()) { if (!first) sb.append(", "); sb.append("bitVectors:");
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_bitVectors = true && this.isSetBitVectors(); boolean that_present_bitVectors = true && that.isSetBitVectors(); if (this_present_bitVectors || that_present_bitVectors) { if (!(this_present_bitVectors && that_present_bitVectors))
lastComparison = Boolean.valueOf(isSetBitVectors()).compareTo(other.isSetBitVectors()); if (lastComparison != 0) { return lastComparison; if (isSetBitVectors()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bitVectors, other.bitVectors); 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); } }
oldLongStatsData.setNumDVs(newLongStatsData.getNumDVs()); if (newLongStatsData.isSetBitVectors()) { oldLongStatsData.setBitVectors(newLongStatsData.getBitVectors());
longStats.isSetNumNulls() ? longStats.getNumNulls() : null, longStats.isSetNumDVs() ? longStats.getNumDVs() : null, longStats.isSetBitVectors() ? longStats.getBitVectors() : null, longStats.isSetLowValue() ? longStats.getLowValue() : null, longStats.isSetHighValue() ? longStats.getHighValue() : null);
longStats.isSetNumNulls() ? longStats.getNumNulls() : null, longStats.isSetNumDVs() ? longStats.getNumDVs() : null, longStats.isSetBitVectors() ? longStats.getBitVectors() : null, longStats.isSetLowValue() ? longStats.getLowValue() : null, longStats.isSetHighValue() ? longStats.getHighValue() : null);
/** * Performs a deep copy on <i>other</i>. */ public LongColumnStatsData(LongColumnStatsData other) { __isset_bitfield = other.__isset_bitfield; this.lowValue = other.lowValue; this.highValue = other.highValue; this.numNulls = other.numNulls; this.numDVs = other.numDVs; if (other.isSetBitVectors()) { this.bitVectors = org.apache.thrift.TBaseHelper.copyBinary(other.bitVectors); } }
@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(); }
sb.append(this.numDVs); first = false; if (isSetBitVectors()) { if (!first) sb.append(", "); sb.append("bitVectors:");
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_bitVectors = true && this.isSetBitVectors(); boolean that_present_bitVectors = true && that.isSetBitVectors(); if (this_present_bitVectors || that_present_bitVectors) { if (!(this_present_bitVectors && that_present_bitVectors))
lastComparison = Boolean.valueOf(isSetBitVectors()).compareTo(other.isSetBitVectors()); if (lastComparison != 0) { return lastComparison; if (isSetBitVectors()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bitVectors, other.bitVectors); 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); } }