Ejemplo n.º 1
0
  public boolean equals(TExchangeNode that) {
    if (that == null) return false;

    boolean this_present_input_row_tuples = true && this.isSetInput_row_tuples();
    boolean that_present_input_row_tuples = true && that.isSetInput_row_tuples();
    if (this_present_input_row_tuples || that_present_input_row_tuples) {
      if (!(this_present_input_row_tuples && that_present_input_row_tuples)) return false;
      if (!this.input_row_tuples.equals(that.input_row_tuples)) return false;
    }

    boolean this_present_sort_info = true && this.isSetSort_info();
    boolean that_present_sort_info = true && that.isSetSort_info();
    if (this_present_sort_info || that_present_sort_info) {
      if (!(this_present_sort_info && that_present_sort_info)) return false;
      if (!this.sort_info.equals(that.sort_info)) return false;
    }

    boolean this_present_offset = true && this.isSetOffset();
    boolean that_present_offset = true && that.isSetOffset();
    if (this_present_offset || that_present_offset) {
      if (!(this_present_offset && that_present_offset)) return false;
      if (this.offset != that.offset) return false;
    }

    return true;
  }
Ejemplo n.º 2
0
 /** Performs a deep copy on <i>other</i>. */
 public TExchangeNode(TExchangeNode other) {
   __isset_bitfield = other.__isset_bitfield;
   if (other.isSetInput_row_tuples()) {
     List<Integer> __this__input_row_tuples = new ArrayList<Integer>();
     for (Integer other_element : other.input_row_tuples) {
       __this__input_row_tuples.add(other_element);
     }
     this.input_row_tuples = __this__input_row_tuples;
   }
   if (other.isSetSort_info()) {
     this.sort_info = new TSortInfo(other.sort_info);
   }
   this.offset = other.offset;
 }
Ejemplo n.º 3
0
  public int compareTo(TExchangeNode other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;
    TExchangeNode typedOther = (TExchangeNode) other;

    lastComparison =
        Boolean.valueOf(isSetInput_row_tuples()).compareTo(typedOther.isSetInput_row_tuples());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetInput_row_tuples()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(
              this.input_row_tuples, typedOther.input_row_tuples);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetSort_info()).compareTo(typedOther.isSetSort_info());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSort_info()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(this.sort_info, typedOther.sort_info);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetOffset()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }