@Override public CatalogProtos.ColumnStatsProto getProto() { CatalogProtos.ColumnStatsProto.Builder builder = CatalogProtos.ColumnStatsProto.newBuilder(); if (this.column != null) { builder.setColumn(this.column.getProto()); } if (this.numDistVals != null) { builder.setNumDistVal(this.numDistVals); } if (this.numNulls != null) { builder.setNumNulls(this.numNulls); } if (this.minValue != null) { builder.setMinValue(ByteString.copyFrom(this.minValue.asByteArray())); } if (this.maxValue != null) { builder.setMaxValue(ByteString.copyFrom(this.maxValue.asByteArray())); } return builder.build(); } }
@Override public CatalogProtos.ColumnStatsProto getProto() { CatalogProtos.ColumnStatsProto.Builder builder = CatalogProtos.ColumnStatsProto.newBuilder(); if (this.column != null) { builder.setColumn(this.column.getProto()); } if (this.numDistVals != null) { builder.setNumDistVal(this.numDistVals); } if (this.numNulls != null) { builder.setNumNulls(this.numNulls); } if (this.minValue != null) { builder.setMinValue(ByteString.copyFrom(this.minValue.asByteArray())); } if (this.maxValue != null) { builder.setMaxValue(ByteString.copyFrom(this.maxValue.asByteArray())); } return builder.build(); } }
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.ColumnStatsProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.ColumnStatsProto.getDefaultInstance()) return this; if (other.hasColumn()) { mergeColumn(other.getColumn()); } if (other.hasNumDistVal()) { setNumDistVal(other.getNumDistVal()); } if (other.hasNumNulls()) { setNumNulls(other.getNumNulls()); } if (other.hasMinValue()) { setMinValue(other.getMinValue()); } if (other.hasMaxValue()) { setMaxValue(other.getMaxValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }