public TimestampWithTimeZone build()

in src/main/java/com/aliyun/dts/subscribe/clients/formats/avro/TimestampWithTimeZone.java [309:322]


    public TimestampWithTimeZone build() {
      try {
        TimestampWithTimeZone record = new TimestampWithTimeZone();
        if (valueBuilder != null) {
          record.value = this.valueBuilder.build();
        } else {
          record.value = fieldSetFlags()[0] ? this.value : (DateTime) defaultValue(fields()[0]);
        }
        record.timezone = fieldSetFlags()[1] ? this.timezone : (String) defaultValue(fields()[1]);
        return record;
      } catch (Exception e) {
        throw new org.apache.avro.AvroRuntimeException(e);
      }
    }