org.apache.accumulo.core.tabletserver.thrift
Class TabletStats

java.lang.Object
  extended by org.apache.accumulo.core.tabletserver.thrift.TabletStats
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TabletStats>, org.apache.thrift.TBase<TabletStats,TabletStats._Fields>

public class TabletStats
extends Object
implements org.apache.thrift.TBase<TabletStats,TabletStats._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class TabletStats._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 TKeyExtent extent
           
 double ingestRate
           
 ActionStats major
           
static Map<TabletStats._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ActionStats minor
           
 long numEntries
           
 double queryRate
           
 ActionStats split
           
 long splitCreationTime
           
 
Constructor Summary
TabletStats()
           
TabletStats(TabletStats other)
          Performs a deep copy on other.
TabletStats(TKeyExtent extent, ActionStats major, ActionStats minor, ActionStats split, long numEntries, double ingestRate, double queryRate, long splitCreationTime)
           
 
Method Summary
 void clear()
           
 int compareTo(TabletStats other)
           
 TabletStats deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TabletStats that)
           
 TabletStats._Fields fieldForId(int fieldId)
           
 TKeyExtent getExtent()
           
 Object getFieldValue(TabletStats._Fields field)
           
 double getIngestRate()
           
 ActionStats getMajor()
           
 ActionStats getMinor()
           
 long getNumEntries()
           
 double getQueryRate()
           
 ActionStats getSplit()
           
 long getSplitCreationTime()
           
 int hashCode()
           
 boolean isSet(TabletStats._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetExtent()
          Returns true if field extent is set (has been assigned a value) and false otherwise
 boolean isSetIngestRate()
          Returns true if field ingestRate is set (has been assigned a value) and false otherwise
 boolean isSetMajor()
          Returns true if field major is set (has been assigned a value) and false otherwise
 boolean isSetMinor()
          Returns true if field minor is set (has been assigned a value) and false otherwise
 boolean isSetNumEntries()
          Returns true if field numEntries is set (has been assigned a value) and false otherwise
 boolean isSetQueryRate()
          Returns true if field queryRate is set (has been assigned a value) and false otherwise
 boolean isSetSplit()
          Returns true if field split is set (has been assigned a value) and false otherwise
 boolean isSetSplitCreationTime()
          Returns true if field splitCreationTime is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TabletStats setExtent(TKeyExtent extent)
           
 void setExtentIsSet(boolean value)
           
 void setFieldValue(TabletStats._Fields field, Object value)
           
 TabletStats setIngestRate(double ingestRate)
           
 void setIngestRateIsSet(boolean value)
           
 TabletStats setMajor(ActionStats major)
           
 void setMajorIsSet(boolean value)
           
 TabletStats setMinor(ActionStats minor)
           
 void setMinorIsSet(boolean value)
           
 TabletStats setNumEntries(long numEntries)
           
 void setNumEntriesIsSet(boolean value)
           
 TabletStats setQueryRate(double queryRate)
           
 void setQueryRateIsSet(boolean value)
           
 TabletStats setSplit(ActionStats split)
           
 TabletStats setSplitCreationTime(long splitCreationTime)
           
 void setSplitCreationTimeIsSet(boolean value)
           
 void setSplitIsSet(boolean value)
           
 String toString()
           
 void unsetExtent()
           
 void unsetIngestRate()
           
 void unsetMajor()
           
 void unsetMinor()
           
 void unsetNumEntries()
           
 void unsetQueryRate()
           
 void unsetSplit()
           
 void unsetSplitCreationTime()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

extent

public TKeyExtent extent

major

public ActionStats major

minor

public ActionStats minor

split

public ActionStats split

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 major,
                   ActionStats minor,
                   ActionStats split,
                   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:
deepCopy in interface org.apache.thrift.TBase<TabletStats,TabletStats._Fields>

clear

public void clear()
Specified by:
clear in interface org.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)

getMajor

public ActionStats getMajor()

setMajor

public TabletStats setMajor(ActionStats major)

unsetMajor

public void unsetMajor()

isSetMajor

public boolean isSetMajor()
Returns true if field major is set (has been assigned a value) and false otherwise


setMajorIsSet

public void setMajorIsSet(boolean value)

getMinor

public ActionStats getMinor()

setMinor

public TabletStats setMinor(ActionStats minor)

unsetMinor

public void unsetMinor()

isSetMinor

public boolean isSetMinor()
Returns true if field minor is set (has been assigned a value) and false otherwise


setMinorIsSet

public void setMinorIsSet(boolean value)

getSplit

public ActionStats getSplit()

setSplit

public TabletStats setSplit(ActionStats split)

unsetSplit

public void unsetSplit()

isSetSplit

public boolean isSetSplit()
Returns true if field split is set (has been assigned a value) and false otherwise


setSplitIsSet

public void setSplitIsSet(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:
setFieldValue in interface org.apache.thrift.TBase<TabletStats,TabletStats._Fields>

getFieldValue

public Object getFieldValue(TabletStats._Fields field)
Specified by:
getFieldValue in interface org.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:
isSet in interface org.apache.thrift.TBase<TabletStats,TabletStats._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(TabletStats that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(TabletStats other)
Specified by:
compareTo in interface Comparable<TabletStats>

fieldForId

public TabletStats._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TabletStats,TabletStats._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TabletStats,TabletStats._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<TabletStats,TabletStats._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.