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 majors
           
static Map<TabletStats._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ActionStats minors
           
 long numEntries
           
 double queryRate
           
 long splitCreationTime
           
 ActionStats splits
           
 
Constructor Summary
TabletStats()
           
TabletStats(TabletStats other)
          Performs a deep copy on other.
TabletStats(TKeyExtent extent, ActionStats majors, ActionStats minors, ActionStats splits, 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 getMajors()
           
 ActionStats getMinors()
           
 long getNumEntries()
           
 double getQueryRate()
           
 long getSplitCreationTime()
           
 ActionStats getSplits()
           
 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 isSetMajors()
          Returns true if field majors is set (has been assigned a value) and false otherwise
 boolean isSetMinors()
          Returns true if field minors 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 isSetSplitCreationTime()
          Returns true if field splitCreationTime is set (has been assigned a value) and false otherwise
 boolean isSetSplits()
          Returns true if field splits 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 setMajors(ActionStats majors)
           
 void setMajorsIsSet(boolean value)
           
 TabletStats setMinors(ActionStats minors)
           
 void setMinorsIsSet(boolean value)
           
 TabletStats setNumEntries(long numEntries)
           
 void setNumEntriesIsSet(boolean value)
           
 TabletStats setQueryRate(double queryRate)
           
 void setQueryRateIsSet(boolean value)
           
 TabletStats setSplitCreationTime(long splitCreationTime)
           
 void setSplitCreationTimeIsSet(boolean value)
           
 TabletStats setSplits(ActionStats splits)
           
 void setSplitsIsSet(boolean value)
           
 String toString()
           
 void unsetExtent()
           
 void unsetIngestRate()
           
 void unsetMajors()
           
 void unsetMinors()
           
 void unsetNumEntries()
           
 void unsetQueryRate()
           
 void unsetSplitCreationTime()
           
 void unsetSplits()
           
 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

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:
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)

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:
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 © 2013 Apache Accumulo Project. All Rights Reserved.