Package wavefront.report
Class ReportPoint.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<ReportPoint>
-
- wavefront.report.ReportPoint.Builder
-
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<ReportPoint>
- Enclosing class:
- ReportPoint
public static class ReportPoint.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<ReportPoint> implements org.apache.avro.data.RecordBuilder<ReportPoint>
RecordBuilder for ReportPoint instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportPointbuild()ReportPoint.BuilderclearAnnotations()Clears the value of the 'annotations' field.ReportPoint.BuilderclearHost()Clears the value of the 'host' field.ReportPoint.BuilderclearMetric()Clears the value of the 'metric' field.ReportPoint.BuilderclearTable()Clears the value of the 'table' field.ReportPoint.BuilderclearTimestamp()Clears the value of the 'timestamp' field.ReportPoint.BuilderclearValue()Clears the value of the 'value' field.Map<String,String>getAnnotations()Gets the value of the 'annotations' field.StringgetHost()Gets the value of the 'host' field.StringgetMetric()Gets the value of the 'metric' field.StringgetTable()Gets the value of the 'table' field.longgetTimestamp()Gets the value of the 'timestamp' field.ObjectgetValue()Gets the value of the 'value' field.booleanhasAnnotations()Checks whether the 'annotations' field has been set.booleanhasHost()Checks whether the 'host' field has been set.booleanhasMetric()Checks whether the 'metric' field has been set.booleanhasTable()Checks whether the 'table' field has been set.booleanhasTimestamp()Checks whether the 'timestamp' field has been set.booleanhasValue()Checks whether the 'value' field has been set.ReportPoint.BuildersetAnnotations(Map<String,String> value)Sets the value of the 'annotations' field.ReportPoint.BuildersetHost(String value)Sets the value of the 'host' field.ReportPoint.BuildersetMetric(String value)Sets the value of the 'metric' field.ReportPoint.BuildersetTable(String value)Sets the value of the 'table' field.ReportPoint.BuildersetTimestamp(long value)Sets the value of the 'timestamp' field.ReportPoint.BuildersetValue(double value)Sets the value of the 'value' field.ReportPoint.BuildersetValue(long value)Sets the value of the 'value' field.ReportPoint.BuildersetValue(String value)Sets the value of the 'value' field.ReportPoint.BuildersetValue(Histogram value)Sets the value of the 'value' field.
-
-
-
Method Detail
-
getMetric
public String getMetric()
Gets the value of the 'metric' field.- Returns:
- The value.
-
setMetric
public ReportPoint.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 ReportPoint.Builder clearMetric()
Clears the value of the 'metric' field.- Returns:
- This builder.
-
getTimestamp
public long getTimestamp()
Gets the value of the 'timestamp' field.- Returns:
- The value.
-
setTimestamp
public ReportPoint.Builder setTimestamp(long value)
Sets the value of the 'timestamp' field.- Parameters:
value- The value of 'timestamp'.- Returns:
- This builder.
-
hasTimestamp
public boolean hasTimestamp()
Checks whether the 'timestamp' field has been set.- Returns:
- True if the 'timestamp' field has been set, false otherwise.
-
clearTimestamp
public ReportPoint.Builder clearTimestamp()
Clears the value of the 'timestamp' field.- Returns:
- This builder.
-
getValue
public Object getValue()
Gets the value of the 'value' field.- Returns:
- The value.
-
setValue
public ReportPoint.Builder setValue(double value)
Sets the value of the 'value' field.- Parameters:
value- The value of 'value'.- Returns:
- This builder.
-
setValue
public ReportPoint.Builder setValue(long value)
Sets the value of the 'value' field.- Parameters:
value- The value of 'value'.- Returns:
- This builder.
-
setValue
public ReportPoint.Builder setValue(String value)
Sets the value of the 'value' field.- Parameters:
value- The value of 'value'.- Returns:
- This builder.
-
setValue
public ReportPoint.Builder setValue(Histogram value)
Sets the value of the 'value' field.- Parameters:
value- The value of 'value'.- Returns:
- This builder.
-
hasValue
public boolean hasValue()
Checks whether the 'value' field has been set.- Returns:
- True if the 'value' field has been set, false otherwise.
-
clearValue
public ReportPoint.Builder clearValue()
Clears the value of the 'value' field.- Returns:
- This builder.
-
getHost
public String getHost()
Gets the value of the 'host' field.- Returns:
- The value.
-
setHost
public ReportPoint.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 ReportPoint.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 ReportPoint.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 ReportPoint.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 ReportPoint.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 ReportPoint.Builder clearAnnotations()
Clears the value of the 'annotations' field.- Returns:
- This builder.
-
build
public ReportPoint build()
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<ReportPoint>
-
-