Class TabletStats
- java.lang.Object
-
- org.apache.accumulo.core.tabletserver.thrift.TabletStats
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TabletStats>,org.apache.thrift.TBase<TabletStats,TabletStats._Fields>,org.apache.thrift.TSerializable
public class TabletStats extends Object implements org.apache.thrift.TBase<TabletStats,TabletStats._Fields>, Serializable, Cloneable, Comparable<TabletStats>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTabletStats._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description TKeyExtentextentdoubleingestRateActionStatsmajorsstatic Map<TabletStats._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapActionStatsminorslongnumEntriesdoublequeryRatelongsplitCreationTimeActionStatssplits
-
Constructor Summary
Constructors Constructor Description TabletStats()TabletStats(TKeyExtent extent, ActionStats majors, ActionStats minors, ActionStats splits, long numEntries, double ingestRate, double queryRate, long splitCreationTime)TabletStats(TabletStats other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TabletStats other)TabletStatsdeepCopy()booleanequals(Object that)booleanequals(TabletStats that)TabletStats._FieldsfieldForId(int fieldId)TKeyExtentgetExtent()ObjectgetFieldValue(TabletStats._Fields field)doublegetIngestRate()ActionStatsgetMajors()ActionStatsgetMinors()longgetNumEntries()doublegetQueryRate()longgetSplitCreationTime()ActionStatsgetSplits()inthashCode()booleanisSet(TabletStats._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetExtent()Returns true if field extent is set (has been assigned a value) and false otherwisebooleanisSetIngestRate()Returns true if field ingestRate is set (has been assigned a value) and false otherwisebooleanisSetMajors()Returns true if field majors is set (has been assigned a value) and false otherwisebooleanisSetMinors()Returns true if field minors is set (has been assigned a value) and false otherwisebooleanisSetNumEntries()Returns true if field numEntries is set (has been assigned a value) and false otherwisebooleanisSetQueryRate()Returns true if field queryRate is set (has been assigned a value) and false otherwisebooleanisSetSplitCreationTime()Returns true if field splitCreationTime is set (has been assigned a value) and false otherwisebooleanisSetSplits()Returns true if field splits is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TabletStatssetExtent(TKeyExtent extent)voidsetExtentIsSet(boolean value)voidsetFieldValue(TabletStats._Fields field, Object value)TabletStatssetIngestRate(double ingestRate)voidsetIngestRateIsSet(boolean value)TabletStatssetMajors(ActionStats majors)voidsetMajorsIsSet(boolean value)TabletStatssetMinors(ActionStats minors)voidsetMinorsIsSet(boolean value)TabletStatssetNumEntries(long numEntries)voidsetNumEntriesIsSet(boolean value)TabletStatssetQueryRate(double queryRate)voidsetQueryRateIsSet(boolean value)TabletStatssetSplitCreationTime(long splitCreationTime)voidsetSplitCreationTimeIsSet(boolean value)TabletStatssetSplits(ActionStats splits)voidsetSplitsIsSet(boolean value)StringtoString()voidunsetExtent()voidunsetIngestRate()voidunsetMajors()voidunsetMinors()voidunsetNumEntries()voidunsetQueryRate()voidunsetSplitCreationTime()voidunsetSplits()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
extent
public TKeyExtent extent
-
majors
public ActionStats majors
-
minors
public ActionStats minors
-
splits
public ActionStats splits
-
numEntries
public long numEntries
-
ingestRate
public double ingestRate
-
queryRate
public double queryRate
-
splitCreationTime
public long splitCreationTime
-
metaDataMap
public static final Map<TabletStats._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TabletStats
public TabletStats()
-
TabletStats
public TabletStats(TKeyExtent extent, ActionStats majors, ActionStats minors, ActionStats splits, long numEntries, double ingestRate, double queryRate, long splitCreationTime)
-
TabletStats
public TabletStats(TabletStats other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TabletStats deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TabletStats,TabletStats._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TabletStats,TabletStats._Fields>
-
getExtent
public TKeyExtent getExtent()
-
setExtent
public TabletStats setExtent(TKeyExtent extent)
-
unsetExtent
public void unsetExtent()
-
isSetExtent
public boolean isSetExtent()
Returns true if field extent is set (has been assigned a value) and false otherwise
-
setExtentIsSet
public void setExtentIsSet(boolean value)
-
getMajors
public ActionStats getMajors()
-
setMajors
public TabletStats setMajors(ActionStats majors)
-
unsetMajors
public void unsetMajors()
-
isSetMajors
public boolean isSetMajors()
Returns true if field majors is set (has been assigned a value) and false otherwise
-
setMajorsIsSet
public void setMajorsIsSet(boolean value)
-
getMinors
public ActionStats getMinors()
-
setMinors
public TabletStats setMinors(ActionStats minors)
-
unsetMinors
public void unsetMinors()
-
isSetMinors
public boolean isSetMinors()
Returns true if field minors is set (has been assigned a value) and false otherwise
-
setMinorsIsSet
public void setMinorsIsSet(boolean value)
-
getSplits
public ActionStats getSplits()
-
setSplits
public TabletStats setSplits(ActionStats splits)
-
unsetSplits
public void unsetSplits()
-
isSetSplits
public boolean isSetSplits()
Returns true if field splits is set (has been assigned a value) and false otherwise
-
setSplitsIsSet
public void setSplitsIsSet(boolean value)
-
getNumEntries
public long getNumEntries()
-
setNumEntries
public TabletStats setNumEntries(long numEntries)
-
unsetNumEntries
public void unsetNumEntries()
-
isSetNumEntries
public boolean isSetNumEntries()
Returns true if field numEntries is set (has been assigned a value) and false otherwise
-
setNumEntriesIsSet
public void setNumEntriesIsSet(boolean value)
-
getIngestRate
public double getIngestRate()
-
setIngestRate
public TabletStats setIngestRate(double ingestRate)
-
unsetIngestRate
public void unsetIngestRate()
-
isSetIngestRate
public boolean isSetIngestRate()
Returns true if field ingestRate is set (has been assigned a value) and false otherwise
-
setIngestRateIsSet
public void setIngestRateIsSet(boolean value)
-
getQueryRate
public double getQueryRate()
-
setQueryRate
public TabletStats setQueryRate(double queryRate)
-
unsetQueryRate
public void unsetQueryRate()
-
isSetQueryRate
public boolean isSetQueryRate()
Returns true if field queryRate is set (has been assigned a value) and false otherwise
-
setQueryRateIsSet
public void setQueryRateIsSet(boolean value)
-
getSplitCreationTime
public long getSplitCreationTime()
-
setSplitCreationTime
public TabletStats setSplitCreationTime(long splitCreationTime)
-
unsetSplitCreationTime
public void unsetSplitCreationTime()
-
isSetSplitCreationTime
public boolean isSetSplitCreationTime()
Returns true if field splitCreationTime is set (has been assigned a value) and false otherwise
-
setSplitCreationTimeIsSet
public void setSplitCreationTimeIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TabletStats._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TabletStats,TabletStats._Fields>
-
getFieldValue
public Object getFieldValue(TabletStats._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TabletStats,TabletStats._Fields>
-
isSet
public boolean isSet(TabletStats._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TabletStats,TabletStats._Fields>
-
equals
public boolean equals(TabletStats that)
-
compareTo
public int compareTo(TabletStats other)
- Specified by:
compareToin interfaceComparable<TabletStats>
-
fieldForId
public TabletStats._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TabletStats,TabletStats._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-