public static class Histogram.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<Histogram> implements org.apache.avro.data.RecordBuilder<Histogram>
| Modifier and Type | Method and Description |
|---|---|
Histogram |
build() |
Histogram.Builder |
clearBins()
Clears the value of the 'bins' field.
|
Histogram.Builder |
clearCounts()
Clears the value of the 'counts' field.
|
Histogram.Builder |
clearDuration()
Clears the value of the 'duration' field.
|
Histogram.Builder |
clearType()
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.
|
Integer |
getDuration()
Gets the value of the 'duration' field.
|
HistogramType |
getType()
Gets the value of the 'type' field.
|
boolean |
hasBins()
Checks whether the 'bins' field has been set.
|
boolean |
hasCounts()
Checks whether the 'counts' field has been set.
|
boolean |
hasDuration()
Checks whether the 'duration' field has been set.
|
boolean |
hasType()
Checks whether the 'type' field has been set.
|
Histogram.Builder |
setBins(List<Double> value)
Sets the value of the 'bins' field.
|
Histogram.Builder |
setCounts(List<Integer> value)
Sets the value of the 'counts' field.
|
Histogram.Builder |
setDuration(int value)
Sets the value of the 'duration' field.
|
Histogram.Builder |
setType(HistogramType value)
Sets the value of the 'type' field.
|
public Integer getDuration()
public Histogram.Builder setDuration(int value)
value - The value of 'duration'.public boolean hasDuration()
public Histogram.Builder clearDuration()
public HistogramType getType()
public Histogram.Builder setType(HistogramType value)
value - The value of 'type'.public boolean hasType()
public Histogram.Builder clearType()
public Histogram.Builder setBins(List<Double> value)
value - The value of 'bins'.public boolean hasBins()
public Histogram.Builder clearBins()
public List<Integer> getCounts()
public Histogram.Builder setCounts(List<Integer> value)
value - The value of 'counts'.public boolean hasCounts()
public Histogram.Builder clearCounts()
Copyright © 2017. All rights reserved.