@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_partitions = true && (isSetPartitions()); list.add(present_partitions); if (present_partitions) list.add(partitions); boolean present_sd = true && (isSetSd()); list.add(present_sd); if (present_sd) list.add(sd); return list.hashCode(); }
/** 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 PARTITIONS: return isSetPartitions(); case SD: return isSetSd(); } throw new IllegalStateException(); }
@Override public int compareTo(PartitionSpecWithSharedSD other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSd()).compareTo(other.isSetSd()); if (lastComparison != 0) { return lastComparison; } if (isSetSd()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, other.sd); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(PartitionSpecWithSharedSD that) { if (that == null) return false; boolean this_present_partitions = true && this.isSetPartitions(); boolean that_present_partitions = true && that.isSetPartitions(); if (this_present_partitions || that_present_partitions) { if (!(this_present_partitions && that_present_partitions)) return false; if (!this.partitions.equals(that.partitions)) return false; } boolean this_present_sd = true && this.isSetSd(); boolean that_present_sd = true && that.isSetSd(); if (this_present_sd || that_present_sd) { if (!(this_present_sd && that_present_sd)) return false; if (!this.sd.equals(that.sd)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public PartitionSpecWithSharedSD(PartitionSpecWithSharedSD other) { if (other.isSetPartitions()) { List<PartitionWithoutSD> __this__partitions = new ArrayList<PartitionWithoutSD>(other.partitions.size()); for (PartitionWithoutSD other_element : other.partitions) { __this__partitions.add(new PartitionWithoutSD(other_element)); } this.partitions = __this__partitions; } if (other.isSetSd()) { this.sd = new StorageDescriptor(other.sd); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSharedSD struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPartitions()) { optionals.set(0); } if (struct.isSetSd()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); for (PartitionWithoutSD _iter264 : struct.partitions) { _iter264.write(oprot); } } } if (struct.isSetSd()) { struct.sd.write(oprot); } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); builder.append(present_partitions); if (present_partitions) builder.append(partitions); boolean present_sd = true && (isSetSd()); builder.append(present_sd); if (present_sd) builder.append(sd); 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 PARTITIONS: return isSetPartitions(); case SD: return isSetSd(); } 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 PARTITIONS: return isSetPartitions(); case SD: return isSetSd(); } 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 PARTITIONS: return isSetPartitions(); case SD: return isSetSd(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_partitions = true && (isSetPartitions()); list.add(present_partitions); if (present_partitions) list.add(partitions); boolean present_sd = true && (isSetSd()); list.add(present_sd); if (present_sd) list.add(sd); return list.hashCode(); }
public boolean equals(PartitionSpecWithSharedSD that) { if (that == null) return false; boolean this_present_partitions = true && this.isSetPartitions(); boolean that_present_partitions = true && that.isSetPartitions(); if (this_present_partitions || that_present_partitions) { if (!(this_present_partitions && that_present_partitions)) return false; if (!this.partitions.equals(that.partitions)) return false; } boolean this_present_sd = true && this.isSetSd(); boolean that_present_sd = true && that.isSetSd(); if (this_present_sd || that_present_sd) { if (!(this_present_sd && that_present_sd)) return false; if (!this.sd.equals(that.sd)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public PartitionSpecWithSharedSD(PartitionSpecWithSharedSD other) { if (other.isSetPartitions()) { List<PartitionWithoutSD> __this__partitions = new ArrayList<PartitionWithoutSD>(other.partitions.size()); for (PartitionWithoutSD other_element : other.partitions) { __this__partitions.add(new PartitionWithoutSD(other_element)); } this.partitions = __this__partitions; } if (other.isSetSd()) { this.sd = new StorageDescriptor(other.sd); } }
public boolean equals(PartitionSpecWithSharedSD that) { if (that == null) return false; boolean this_present_partitions = true && this.isSetPartitions(); boolean that_present_partitions = true && that.isSetPartitions(); if (this_present_partitions || that_present_partitions) { if (!(this_present_partitions && that_present_partitions)) return false; if (!this.partitions.equals(that.partitions)) return false; } boolean this_present_sd = true && this.isSetSd(); boolean that_present_sd = true && that.isSetSd(); if (this_present_sd || that_present_sd) { if (!(this_present_sd && that_present_sd)) return false; if (!this.sd.equals(that.sd)) return false; } return true; }
public boolean equals(PartitionSpecWithSharedSD that) { if (that == null) return false; boolean this_present_partitions = true && this.isSetPartitions(); boolean that_present_partitions = true && that.isSetPartitions(); if (this_present_partitions || that_present_partitions) { if (!(this_present_partitions && that_present_partitions)) return false; if (!this.partitions.equals(that.partitions)) return false; } boolean this_present_sd = true && this.isSetSd(); boolean that_present_sd = true && that.isSetSd(); if (this_present_sd || that_present_sd) { if (!(this_present_sd && that_present_sd)) return false; if (!this.sd.equals(that.sd)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public PartitionSpecWithSharedSD(PartitionSpecWithSharedSD other) { if (other.isSetPartitions()) { List<PartitionWithoutSD> __this__partitions = new ArrayList<PartitionWithoutSD>(); for (PartitionWithoutSD other_element : other.partitions) { __this__partitions.add(new PartitionWithoutSD(other_element)); } this.partitions = __this__partitions; } if (other.isSetSd()) { this.sd = new StorageDescriptor(other.sd); } }
/** * Performs a deep copy on <i>other</i>. */ public PartitionSpecWithSharedSD(PartitionSpecWithSharedSD other) { if (other.isSetPartitions()) { List<PartitionWithoutSD> __this__partitions = new ArrayList<PartitionWithoutSD>(); for (PartitionWithoutSD other_element : other.partitions) { __this__partitions.add(new PartitionWithoutSD(other_element)); } this.partitions = __this__partitions; } if (other.isSetSd()) { this.sd = new StorageDescriptor(other.sd); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSharedSD struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPartitions()) { optionals.set(0); } if (struct.isSetSd()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); for (PartitionWithoutSD _iter248 : struct.partitions) { _iter248.write(oprot); } } } if (struct.isSetSd()) { struct.sd.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSharedSD struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPartitions()) { optionals.set(0); } if (struct.isSetSd()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); for (PartitionWithoutSD _iter256 : struct.partitions) { _iter256.write(oprot); } } } if (struct.isSetSd()) { struct.sd.write(oprot); } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); builder.append(present_partitions); if (present_partitions) builder.append(partitions); boolean present_sd = true && (isSetSd()); builder.append(present_sd); if (present_sd) builder.append(sd); return builder.toHashCode(); }