Class Histogram.Builder

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

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

      • getDuration

        public int getDuration()
        Gets the value of the 'duration' field.
        Returns:
        The value.
      • setDuration

        public Histogram.Builder setDuration​(int value)
        Sets the value of the 'duration' field.
        Parameters:
        value - The value of 'duration'.
        Returns:
        This builder.
      • hasDuration

        public boolean hasDuration()
        Checks whether the 'duration' field has been set.
        Returns:
        True if the 'duration' field has been set, false otherwise.
      • clearDuration

        public Histogram.Builder clearDuration()
        Clears the value of the 'duration' field.
        Returns:
        This builder.
      • getType

        public HistogramType getType()
        Gets the value of the 'type' field.
        Returns:
        The value.
      • setType

        public Histogram.Builder setType​(HistogramType value)
        Sets the value of the 'type' field.
        Parameters:
        value - The value of 'type'.
        Returns:
        This builder.
      • hasType

        public boolean hasType()
        Checks whether the 'type' field has been set.
        Returns:
        True if the 'type' field has been set, false otherwise.
      • clearType

        public Histogram.Builder clearType()
        Clears the value of the 'type' field.
        Returns:
        This builder.
      • getBins

        public List<Double> getBins()
        Gets the value of the 'bins' field.
        Returns:
        The value.
      • setBins

        public Histogram.Builder setBins​(List<Double> value)
        Sets the value of the 'bins' field.
        Parameters:
        value - The value of 'bins'.
        Returns:
        This builder.
      • hasBins

        public boolean hasBins()
        Checks whether the 'bins' field has been set.
        Returns:
        True if the 'bins' field has been set, false otherwise.
      • clearBins

        public Histogram.Builder clearBins()
        Clears the value of the 'bins' field.
        Returns:
        This builder.
      • getCounts

        public List<Integer> getCounts()
        Gets the value of the 'counts' field.
        Returns:
        The value.
      • setCounts

        public Histogram.Builder setCounts​(List<Integer> value)
        Sets the value of the 'counts' field.
        Parameters:
        value - The value of 'counts'.
        Returns:
        This builder.
      • hasCounts

        public boolean hasCounts()
        Checks whether the 'counts' field has been set.
        Returns:
        True if the 'counts' field has been set, false otherwise.
      • clearCounts

        public Histogram.Builder clearCounts()
        Clears the value of the 'counts' field.
        Returns:
        This builder.
      • build

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