Пример #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;
  }
Пример #2
0
 public String toString() {
   initFromProto();
   Gson gson =
       new GsonBuilder().setPrettyPrinting().excludeFieldsWithoutExposeAnnotation().create();
   return gson.toJson(this);
 }