Esempio n. 1
0
  public Object clone() throws CloneNotSupportedException {
    ColumnStat stat = (ColumnStat) super.clone();
    initFromProto();
    stat.column = (Column) this.column.clone();
    stat.numDistVals = numDistVals;
    stat.numNulls = numNulls;
    stat.minValue = minValue;
    stat.maxValue = maxValue;

    return stat;
  }
Esempio n. 2
0
 public boolean equals(Object obj) {
   if (obj instanceof ColumnStat) {
     ColumnStat other = (ColumnStat) obj;
     return getColumn().equals(other.getColumn())
         && getNumDistValues().equals(other.getNumDistValues())
         && getNumNulls().equals(other.getNumNulls())
         && TUtil.checkEquals(getMinValue(), other.getMinValue())
         && TUtil.checkEquals(getMaxValue(), other.getMaxValue());
   } else {
     return false;
   }
 }