Ejemplo n.º 1
0
  public Column getColumn() {
    ColumnStatProtoOrBuilder p = viaProto ? proto : builder;
    if (column != null) {
      return column;
    }
    if (!p.hasColumn()) {
      return null;
    }
    this.column = new Column(p.getColumn());

    return this.column;
  }
Ejemplo n.º 2
0
  public Long getNumDistValues() {
    ColumnStatProtoOrBuilder p = viaProto ? proto : builder;
    if (numDistVals != null) {
      return this.numDistVals;
    }
    if (!p.hasNumDistVal()) {
      return null;
    }
    this.numDistVals = p.getNumDistVal();

    return this.numDistVals;
  }
Ejemplo n.º 3
0
  public Datum getMinValue() {
    ColumnStatProtoOrBuilder p = viaProto ? proto : builder;
    if (minValue != null) {
      return this.minValue;
    }
    if (!p.hasMinValue()) {
      return null;
    }
    this.minValue =
        TupleUtil.createFromBytes(getColumn().getDataType(), p.getMinValue().toByteArray());

    return this.minValue;
  }
Ejemplo n.º 4
0
 @Override
 public void initFromProto() {
   ColumnStatProtoOrBuilder p = viaProto ? proto : builder;
   if (this.column == null && p.hasColumn()) {
     this.column = new Column(p.getColumn());
   }
   if (this.numDistVals == null && p.hasNumDistVal()) {
     this.numDistVals = p.getNumDistVal();
   }
   if (this.numNulls == null && p.hasNumNulls()) {
     this.numNulls = p.getNumNulls();
   }
   if (this.minValue == null && p.hasMinValue()) {
     this.minValue =
         TupleUtil.createFromBytes(getColumn().getDataType(), p.getMinValue().toByteArray());
   }
   if (this.maxValue == null && p.hasMaxValue()) {
     this.maxValue =
         TupleUtil.createFromBytes(getColumn().getDataType(), p.getMaxValue().toByteArray());
   }
 }