|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.generated.Metric
public class Metric
The Metric will hold all the information for a given Metric.
Nested Class Summary | |
---|---|
static class |
Metric._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
Map<String,Double> |
doubleMap
map of double values emitted by the Metric. |
Map<String,Long> |
longMap
map of long values emitted by the Metric. |
static Map<Metric._Fields,FieldMetaData> |
metaDataMap
|
String |
name
metric name. |
Map<String,String> |
strMap
map of string values emitted by the Metric. |
Constructor Summary | |
---|---|
Metric()
|
|
Metric(Metric other)
Performs a deep copy on other. |
|
Metric(String name,
Map<String,String> strMap,
Map<String,Long> longMap,
Map<String,Double> doubleMap)
|
Method Summary | |
---|---|
void |
clear()
Return to the state of having just been initialized, as though you had just called the default constructor. |
int |
compareTo(Metric other)
|
Metric |
deepCopy()
|
boolean |
equals(Metric that)
|
boolean |
equals(Object that)
|
Metric._Fields |
fieldForId(int fieldId)
Get the F instance that corresponds to fieldId. |
Map<String,Double> |
getDoubleMap()
map of double values emitted by the Metric. |
int |
getDoubleMapSize()
|
Object |
getFieldValue(Metric._Fields field)
Get a field's value by field variable. |
Map<String,Long> |
getLongMap()
map of long values emitted by the Metric. |
int |
getLongMapSize()
|
String |
getName()
metric name. |
Map<String,String> |
getStrMap()
map of string values emitted by the Metric. |
int |
getStrMapSize()
|
int |
hashCode()
|
boolean |
isSet(Metric._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetDoubleMap()
Returns true if field doubleMap is set (has been assigned a value) and false otherwise |
boolean |
isSetLongMap()
Returns true if field longMap is set (has been assigned a value) and false otherwise |
boolean |
isSetName()
Returns true if field name is set (has been assigned a value) and false otherwise |
boolean |
isSetStrMap()
Returns true if field strMap is set (has been assigned a value) and false otherwise |
void |
putToDoubleMap(String key,
double val)
|
void |
putToLongMap(String key,
long val)
|
void |
putToStrMap(String key,
String val)
|
void |
read(TProtocol iprot)
Reads the TObject from the given input protocol. |
Metric |
setDoubleMap(Map<String,Double> doubleMap)
map of double values emitted by the Metric. |
void |
setDoubleMapIsSet(boolean value)
|
void |
setFieldValue(Metric._Fields field,
Object value)
Set a field's value by field variable. |
Metric |
setLongMap(Map<String,Long> longMap)
map of long values emitted by the Metric. |
void |
setLongMapIsSet(boolean value)
|
Metric |
setName(String name)
metric name. |
void |
setNameIsSet(boolean value)
|
Metric |
setStrMap(Map<String,String> strMap)
map of string values emitted by the Metric. |
void |
setStrMapIsSet(boolean value)
|
String |
toString()
|
void |
unsetDoubleMap()
|
void |
unsetLongMap()
|
void |
unsetName()
|
void |
unsetStrMap()
|
void |
validate()
|
void |
write(TProtocol oprot)
Writes the objects out to the protocol |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String name
public Map<String,String> strMap
public Map<String,Long> longMap
public Map<String,Double> doubleMap
public static final Map<Metric._Fields,FieldMetaData> metaDataMap
Constructor Detail |
---|
public Metric()
public Metric(String name, Map<String,String> strMap, Map<String,Long> longMap, Map<String,Double> doubleMap)
public Metric(Metric other)
Method Detail |
---|
public Metric deepCopy()
deepCopy
in interface TBase<Metric,Metric._Fields>
public void clear()
TBase
clear
in interface TBase<Metric,Metric._Fields>
public String getName()
public Metric setName(String name)
public void unsetName()
public boolean isSetName()
public void setNameIsSet(boolean value)
public int getStrMapSize()
public void putToStrMap(String key, String val)
public Map<String,String> getStrMap()
public Metric setStrMap(Map<String,String> strMap)
public void unsetStrMap()
public boolean isSetStrMap()
public void setStrMapIsSet(boolean value)
public int getLongMapSize()
public void putToLongMap(String key, long val)
public Map<String,Long> getLongMap()
public Metric setLongMap(Map<String,Long> longMap)
public void unsetLongMap()
public boolean isSetLongMap()
public void setLongMapIsSet(boolean value)
public int getDoubleMapSize()
public void putToDoubleMap(String key, double val)
public Map<String,Double> getDoubleMap()
public Metric setDoubleMap(Map<String,Double> doubleMap)
public void unsetDoubleMap()
public boolean isSetDoubleMap()
public void setDoubleMapIsSet(boolean value)
public void setFieldValue(Metric._Fields field, Object value)
TBase
setFieldValue
in interface TBase<Metric,Metric._Fields>
public Object getFieldValue(Metric._Fields field)
TBase
getFieldValue
in interface TBase<Metric,Metric._Fields>
public boolean isSet(Metric._Fields field)
isSet
in interface TBase<Metric,Metric._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(Metric that)
public int hashCode()
hashCode
in class Object
public int compareTo(Metric other)
compareTo
in interface Comparable<Metric>
public Metric._Fields fieldForId(int fieldId)
TBase
fieldForId
in interface TBase<Metric,Metric._Fields>
public void read(TProtocol iprot) throws TException
TBase
read
in interface TBase<Metric,Metric._Fields>
iprot
- Input protocol
TException
public void write(TProtocol oprot) throws TException
TBase
write
in interface TBase<Metric,Metric._Fields>
oprot
- Output protocol
TException
public String toString()
toString
in class Object
public void validate() throws TException
TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |