Class TimeSeries.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder<TimeSeries>
    Enclosing class:
    TimeSeries

    public static class TimeSeries.Builder
    extends org.apache.avro.specific.SpecificRecordBuilderBase<TimeSeries>
    implements org.apache.avro.data.RecordBuilder<TimeSeries>
    RecordBuilder for TimeSeries instances.
    • Method Detail

      • getMetric

        public String getMetric()
        Gets the value of the 'metric' field.
        Returns:
        The value.
      • setMetric

        public TimeSeries.Builder setMetric​(String value)
        Sets the value of the 'metric' field.
        Parameters:
        value - The value of 'metric'.
        Returns:
        This builder.
      • hasMetric

        public boolean hasMetric()
        Checks whether the 'metric' field has been set.
        Returns:
        True if the 'metric' field has been set, false otherwise.
      • clearMetric

        public TimeSeries.Builder clearMetric()
        Clears the value of the 'metric' field.
        Returns:
        This builder.
      • getHost

        public String getHost()
        Gets the value of the 'host' field.
        Returns:
        The value.
      • setHost

        public TimeSeries.Builder setHost​(String value)
        Sets the value of the 'host' field.
        Parameters:
        value - The value of 'host'.
        Returns:
        This builder.
      • hasHost

        public boolean hasHost()
        Checks whether the 'host' field has been set.
        Returns:
        True if the 'host' field has been set, false otherwise.
      • clearHost

        public TimeSeries.Builder clearHost()
        Clears the value of the 'host' field.
        Returns:
        This builder.
      • getTable

        public String getTable()
        Gets the value of the 'table' field.
        Returns:
        The value.
      • setTable

        public TimeSeries.Builder setTable​(String value)
        Sets the value of the 'table' field.
        Parameters:
        value - The value of 'table'.
        Returns:
        This builder.
      • hasTable

        public boolean hasTable()
        Checks whether the 'table' field has been set.
        Returns:
        True if the 'table' field has been set, false otherwise.
      • clearTable

        public TimeSeries.Builder clearTable()
        Clears the value of the 'table' field.
        Returns:
        This builder.
      • getAnnotations

        public Map<String,​String> getAnnotations()
        Gets the value of the 'annotations' field.
        Returns:
        The value.
      • setAnnotations

        public TimeSeries.Builder setAnnotations​(Map<String,​String> value)
        Sets the value of the 'annotations' field.
        Parameters:
        value - The value of 'annotations'.
        Returns:
        This builder.
      • hasAnnotations

        public boolean hasAnnotations()
        Checks whether the 'annotations' field has been set.
        Returns:
        True if the 'annotations' field has been set, false otherwise.
      • clearAnnotations

        public TimeSeries.Builder clearAnnotations()
        Clears the value of the 'annotations' field.
        Returns:
        This builder.
      • build

        public TimeSeries build()
        Specified by:
        build in interface org.apache.avro.data.RecordBuilder<TimeSeries>