@Generated(value="Autogenerated by Thrift Compiler (0.9.3)",
date="2018-07-17")
public class MetricBatch
extends java.lang.Object
implements org.apache.thrift.TBase<MetricBatch,MetricBatch._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<MetricBatch>
| Modifier and Type | Class and Description |
|---|---|
static class |
MetricBatch._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
java.util.Set<MetricTag> |
commonTags |
static java.util.Map<MetricBatch._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
java.util.List<Metric> |
metrics |
| Constructor and Description |
|---|
MetricBatch() |
MetricBatch(java.util.List<Metric> metrics) |
MetricBatch(MetricBatch other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToCommonTags(MetricTag elem) |
void |
addToMetrics(Metric elem) |
void |
clear() |
int |
compareTo(MetricBatch other) |
MetricBatch |
deepCopy() |
boolean |
equals(MetricBatch that) |
boolean |
equals(java.lang.Object that) |
MetricBatch._Fields |
fieldForId(int fieldId) |
java.util.Set<MetricTag> |
getCommonTags() |
java.util.Iterator<MetricTag> |
getCommonTagsIterator() |
int |
getCommonTagsSize() |
java.lang.Object |
getFieldValue(MetricBatch._Fields field) |
java.util.List<Metric> |
getMetrics() |
java.util.Iterator<Metric> |
getMetricsIterator() |
int |
getMetricsSize() |
int |
hashCode() |
boolean |
isSet(MetricBatch._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCommonTags()
Returns true if field commonTags is set (has been assigned a value) and false otherwise
|
boolean |
isSetMetrics()
Returns true if field metrics is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
MetricBatch |
setCommonTags(java.util.Set<MetricTag> commonTags) |
void |
setCommonTagsIsSet(boolean value) |
void |
setFieldValue(MetricBatch._Fields field,
java.lang.Object value) |
MetricBatch |
setMetrics(java.util.List<Metric> metrics) |
void |
setMetricsIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetCommonTags() |
void |
unsetMetrics() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public java.util.List<Metric> metrics
public java.util.Set<MetricTag> commonTags
public static final java.util.Map<MetricBatch._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public MetricBatch()
public MetricBatch(java.util.List<Metric> metrics)
public MetricBatch(MetricBatch other)
public MetricBatch deepCopy()
deepCopy in interface org.apache.thrift.TBase<MetricBatch,MetricBatch._Fields>public void clear()
clear in interface org.apache.thrift.TBase<MetricBatch,MetricBatch._Fields>public int getMetricsSize()
public java.util.Iterator<Metric> getMetricsIterator()
public void addToMetrics(Metric elem)
public java.util.List<Metric> getMetrics()
public MetricBatch setMetrics(java.util.List<Metric> metrics)
public void unsetMetrics()
public boolean isSetMetrics()
public void setMetricsIsSet(boolean value)
public int getCommonTagsSize()
public java.util.Iterator<MetricTag> getCommonTagsIterator()
public void addToCommonTags(MetricTag elem)
public java.util.Set<MetricTag> getCommonTags()
public MetricBatch setCommonTags(java.util.Set<MetricTag> commonTags)
public void unsetCommonTags()
public boolean isSetCommonTags()
public void setCommonTagsIsSet(boolean value)
public void setFieldValue(MetricBatch._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<MetricBatch,MetricBatch._Fields>public java.lang.Object getFieldValue(MetricBatch._Fields field)
getFieldValue in interface org.apache.thrift.TBase<MetricBatch,MetricBatch._Fields>public boolean isSet(MetricBatch._Fields field)
isSet in interface org.apache.thrift.TBase<MetricBatch,MetricBatch._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(MetricBatch that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(MetricBatch other)
compareTo in interface java.lang.Comparable<MetricBatch>public MetricBatch._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<MetricBatch,MetricBatch._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<MetricBatch,MetricBatch._Fields>org.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TBase<MetricBatch,MetricBatch._Fields>org.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TException