/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(org.apache.gobblin.metrics.FlatGobblinMetric.Builder other) { super(other); if (isValidValue(fields()[0], other.tags)) { this.tags = data().deepCopy(fields()[0].schema(), other.tags); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.timestamp)) { this.timestamp = data().deepCopy(fields()[1].schema(), other.timestamp); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.metricName)) { this.metricName = data().deepCopy(fields()[2].schema(), other.metricName); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.metricValue)) { this.metricValue = data().deepCopy(fields()[3].schema(), other.metricValue); fieldSetFlags()[3] = true; } }
/** * Creates a Builder by copying an existing FlatGobblinMetric instance * @param other The existing instance to copy. */ private Builder(org.apache.gobblin.metrics.FlatGobblinMetric other) { super(SCHEMA$); if (isValidValue(fields()[0], other.tags)) { this.tags = data().deepCopy(fields()[0].schema(), other.tags); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.timestamp)) { this.timestamp = data().deepCopy(fields()[1].schema(), other.timestamp); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.metricName)) { this.metricName = data().deepCopy(fields()[2].schema(), other.metricName); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.metricValue)) { this.metricValue = data().deepCopy(fields()[3].schema(), other.metricValue); fieldSetFlags()[3] = true; } }
/** * Creates a Builder by copying an existing FlatGobblinMetric instance * @param other The existing instance to copy. */ private Builder(org.apache.gobblin.metrics.FlatGobblinMetric other) { super(SCHEMA$); if (isValidValue(fields()[0], other.tags)) { this.tags = data().deepCopy(fields()[0].schema(), other.tags); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.timestamp)) { this.timestamp = data().deepCopy(fields()[1].schema(), other.timestamp); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.metricName)) { this.metricName = data().deepCopy(fields()[2].schema(), other.metricName); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.metricValue)) { this.metricValue = data().deepCopy(fields()[3].schema(), other.metricValue); fieldSetFlags()[3] = true; } }
/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(org.apache.gobblin.metrics.FlatGobblinMetric.Builder other) { super(other); if (isValidValue(fields()[0], other.tags)) { this.tags = data().deepCopy(fields()[0].schema(), other.tags); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.timestamp)) { this.timestamp = data().deepCopy(fields()[1].schema(), other.timestamp); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.metricName)) { this.metricName = data().deepCopy(fields()[2].schema(), other.metricName); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.metricValue)) { this.metricValue = data().deepCopy(fields()[3].schema(), other.metricValue); fieldSetFlags()[3] = true; } }