예제 #1
0
파일: TRowSet.java 프로젝트: nssalian/hive
  public boolean equals(TRowSet that) {
    if (that == null) return false;

    boolean this_present_startRowOffset = true;
    boolean that_present_startRowOffset = true;
    if (this_present_startRowOffset || that_present_startRowOffset) {
      if (!(this_present_startRowOffset && that_present_startRowOffset)) return false;
      if (this.startRowOffset != that.startRowOffset) return false;
    }

    boolean this_present_rows = true && this.isSetRows();
    boolean that_present_rows = true && that.isSetRows();
    if (this_present_rows || that_present_rows) {
      if (!(this_present_rows && that_present_rows)) return false;
      if (!this.rows.equals(that.rows)) return false;
    }

    boolean this_present_columns = true && this.isSetColumns();
    boolean that_present_columns = true && that.isSetColumns();
    if (this_present_columns || that_present_columns) {
      if (!(this_present_columns && that_present_columns)) return false;
      if (!this.columns.equals(that.columns)) return false;
    }

    return true;
  }
예제 #2
0
파일: TRowSet.java 프로젝트: nssalian/hive
 /** Performs a deep copy on <i>other</i>. */
 public TRowSet(TRowSet other) {
   __isset_bitfield = other.__isset_bitfield;
   this.startRowOffset = other.startRowOffset;
   if (other.isSetRows()) {
     List<TRow> __this__rows = new ArrayList<TRow>(other.rows.size());
     for (TRow other_element : other.rows) {
       __this__rows.add(new TRow(other_element));
     }
     this.rows = __this__rows;
   }
   if (other.isSetColumns()) {
     List<TColumn> __this__columns = new ArrayList<TColumn>(other.columns.size());
     for (TColumn other_element : other.columns) {
       __this__columns.add(new TColumn(other_element));
     }
     this.columns = __this__columns;
   }
 }
예제 #3
0
파일: TRowSet.java 프로젝트: nssalian/hive
  @Override
  public int compareTo(TRowSet other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = Boolean.valueOf(isSetStartRowOffset()).compareTo(other.isSetStartRowOffset());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetStartRowOffset()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(this.startRowOffset, other.startRowOffset);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetRows()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, other.rows);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetColumns()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
예제 #4
0
 /** Performs a deep copy on <i>other</i>. */
 public TRowSet(TRowSet other) {
   __isset_bitfield = other.__isset_bitfield;
   this.startRowOffset = other.startRowOffset;
   if (other.isSetRows()) {
     List<TRow> __this__rows = new ArrayList<TRow>(other.rows.size());
     for (TRow other_element : other.rows) {
       __this__rows.add(new TRow(other_element));
     }
     this.rows = __this__rows;
   }
   if (other.isSetColumns()) {
     List<TColumn> __this__columns = new ArrayList<TColumn>(other.columns.size());
     for (TColumn other_element : other.columns) {
       __this__columns.add(new TColumn(other_element));
     }
     this.columns = __this__columns;
   }
   if (other.isSetBinaryColumns()) {
     this.binaryColumns = org.apache.thrift.TBaseHelper.copyBinary(other.binaryColumns);
   }
   this.columnCount = other.columnCount;
 }