Package wavefront.report
Class Histogram.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<Histogram>
-
- wavefront.report.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Histogrambuild()Histogram.BuilderclearBins()Clears the value of the 'bins' field.Histogram.BuilderclearCounts()Clears the value of the 'counts' field.Histogram.BuilderclearDuration()Clears the value of the 'duration' field.Histogram.BuilderclearType()Clears the value of the 'type' field.List<Double>getBins()Gets the value of the 'bins' field.List<Integer>getCounts()Gets the value of the 'counts' field.intgetDuration()Gets the value of the 'duration' field.HistogramTypegetType()Gets the value of the 'type' field.booleanhasBins()Checks whether the 'bins' field has been set.booleanhasCounts()Checks whether the 'counts' field has been set.booleanhasDuration()Checks whether the 'duration' field has been set.booleanhasType()Checks whether the 'type' field has been set.Histogram.BuildersetBins(List<Double> value)Sets the value of the 'bins' field.Histogram.BuildersetCounts(List<Integer> value)Sets the value of the 'counts' field.Histogram.BuildersetDuration(int value)Sets the value of the 'duration' field.Histogram.BuildersetType(HistogramType value)Sets the value of the 'type' field.
-
-
-
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.
-
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.
-
-