org.apache.accumulo.core.master.thrift
Class TableInfo

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

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

See Also:
Serialized Form

Nested Class Summary
static class TableInfo._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 double ingestByteRate
           
 double ingestRate
           
 Compacting majors
           
static Map<TableInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 Compacting minors
           
 int onlineTablets
           
 double queryByteRate
           
 double queryRate
           
 long recs
           
 long recsInMemory
           
 double scanRate
           
 Compacting scans
           
 int tablets
           
 
Constructor Summary
TableInfo()
           
TableInfo(long recs, long recsInMemory, int tablets, int onlineTablets, double ingestRate, double ingestByteRate, double queryRate, double queryByteRate, Compacting minors, Compacting majors, Compacting scans, double scanRate)
           
TableInfo(TableInfo other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
           
 int compareTo(TableInfo other)
           
 TableInfo deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TableInfo that)
           
 TableInfo._Fields fieldForId(int fieldId)
           
 Object getFieldValue(TableInfo._Fields field)
           
 double getIngestByteRate()
           
 double getIngestRate()
           
 Compacting getMajors()
           
 Compacting getMinors()
           
 int getOnlineTablets()
           
 double getQueryByteRate()
           
 double getQueryRate()
           
 long getRecs()
           
 long getRecsInMemory()
           
 double getScanRate()
           
 Compacting getScans()
           
 int getTablets()
           
 int hashCode()
           
 boolean isSet(TableInfo._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetIngestByteRate()
          Returns true if field ingestByteRate 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 isSetOnlineTablets()
          Returns true if field onlineTablets is set (has been assigned a value) and false otherwise
 boolean isSetQueryByteRate()
          Returns true if field queryByteRate 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 isSetRecs()
          Returns true if field recs is set (has been assigned a value) and false otherwise
 boolean isSetRecsInMemory()
          Returns true if field recsInMemory is set (has been assigned a value) and false otherwise
 boolean isSetScanRate()
          Returns true if field scanRate is set (has been assigned a value) and false otherwise
 boolean isSetScans()
          Returns true if field scans is set (has been assigned a value) and false otherwise
 boolean isSetTablets()
          Returns true if field tablets is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(TableInfo._Fields field, Object value)
           
 TableInfo setIngestByteRate(double ingestByteRate)
           
 void setIngestByteRateIsSet(boolean value)
           
 TableInfo setIngestRate(double ingestRate)
           
 void setIngestRateIsSet(boolean value)
           
 TableInfo setMajors(Compacting majors)
           
 void setMajorsIsSet(boolean value)
           
 TableInfo setMinors(Compacting minors)
           
 void setMinorsIsSet(boolean value)
           
 TableInfo setOnlineTablets(int onlineTablets)
           
 void setOnlineTabletsIsSet(boolean value)
           
 TableInfo setQueryByteRate(double queryByteRate)
           
 void setQueryByteRateIsSet(boolean value)
           
 TableInfo setQueryRate(double queryRate)
           
 void setQueryRateIsSet(boolean value)
           
 TableInfo setRecs(long recs)
           
 TableInfo setRecsInMemory(long recsInMemory)
           
 void setRecsInMemoryIsSet(boolean value)
           
 void setRecsIsSet(boolean value)
           
 TableInfo setScanRate(double scanRate)
           
 void setScanRateIsSet(boolean value)
           
 TableInfo setScans(Compacting scans)
           
 void setScansIsSet(boolean value)
           
 TableInfo setTablets(int tablets)
           
 void setTabletsIsSet(boolean value)
           
 String toString()
           
 void unsetIngestByteRate()
           
 void unsetIngestRate()
           
 void unsetMajors()
           
 void unsetMinors()
           
 void unsetOnlineTablets()
           
 void unsetQueryByteRate()
           
 void unsetQueryRate()
           
 void unsetRecs()
           
 void unsetRecsInMemory()
           
 void unsetScanRate()
           
 void unsetScans()
           
 void unsetTablets()
           
 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

recs

public long recs

recsInMemory

public long recsInMemory

tablets

public int tablets

onlineTablets

public int onlineTablets

ingestRate

public double ingestRate

ingestByteRate

public double ingestByteRate

queryRate

public double queryRate

queryByteRate

public double queryByteRate

minors

public Compacting minors

majors

public Compacting majors

scans

public Compacting scans

scanRate

public double scanRate

metaDataMap

public static final Map<TableInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

TableInfo

public TableInfo()

TableInfo

public TableInfo(long recs,
                 long recsInMemory,
                 int tablets,
                 int onlineTablets,
                 double ingestRate,
                 double ingestByteRate,
                 double queryRate,
                 double queryByteRate,
                 Compacting minors,
                 Compacting majors,
                 Compacting scans,
                 double scanRate)

TableInfo

public TableInfo(TableInfo other)
Performs a deep copy on other.

Method Detail

deepCopy

public TableInfo deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<TableInfo,TableInfo._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<TableInfo,TableInfo._Fields>

getRecs

public long getRecs()

setRecs

public TableInfo setRecs(long recs)

unsetRecs

public void unsetRecs()

isSetRecs

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


setRecsIsSet

public void setRecsIsSet(boolean value)

getRecsInMemory

public long getRecsInMemory()

setRecsInMemory

public TableInfo setRecsInMemory(long recsInMemory)

unsetRecsInMemory

public void unsetRecsInMemory()

isSetRecsInMemory

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


setRecsInMemoryIsSet

public void setRecsInMemoryIsSet(boolean value)

getTablets

public int getTablets()

setTablets

public TableInfo setTablets(int tablets)

unsetTablets

public void unsetTablets()

isSetTablets

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


setTabletsIsSet

public void setTabletsIsSet(boolean value)

getOnlineTablets

public int getOnlineTablets()

setOnlineTablets

public TableInfo setOnlineTablets(int onlineTablets)

unsetOnlineTablets

public void unsetOnlineTablets()

isSetOnlineTablets

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


setOnlineTabletsIsSet

public void setOnlineTabletsIsSet(boolean value)

getIngestRate

public double getIngestRate()

setIngestRate

public TableInfo 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)

getIngestByteRate

public double getIngestByteRate()

setIngestByteRate

public TableInfo setIngestByteRate(double ingestByteRate)

unsetIngestByteRate

public void unsetIngestByteRate()

isSetIngestByteRate

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


setIngestByteRateIsSet

public void setIngestByteRateIsSet(boolean value)

getQueryRate

public double getQueryRate()

setQueryRate

public TableInfo 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)

getQueryByteRate

public double getQueryByteRate()

setQueryByteRate

public TableInfo setQueryByteRate(double queryByteRate)

unsetQueryByteRate

public void unsetQueryByteRate()

isSetQueryByteRate

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


setQueryByteRateIsSet

public void setQueryByteRateIsSet(boolean value)

getMinors

public Compacting getMinors()

setMinors

public TableInfo setMinors(Compacting 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)

getMajors

public Compacting getMajors()

setMajors

public TableInfo setMajors(Compacting 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)

getScans

public Compacting getScans()

setScans

public TableInfo setScans(Compacting scans)

unsetScans

public void unsetScans()

isSetScans

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


setScansIsSet

public void setScansIsSet(boolean value)

getScanRate

public double getScanRate()

setScanRate

public TableInfo setScanRate(double scanRate)

unsetScanRate

public void unsetScanRate()

isSetScanRate

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


setScanRateIsSet

public void setScanRateIsSet(boolean value)

setFieldValue

public void setFieldValue(TableInfo._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TableInfo,TableInfo._Fields>

getFieldValue

public Object getFieldValue(TableInfo._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TableInfo,TableInfo._Fields>

isSet

public boolean isSet(TableInfo._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<TableInfo,TableInfo._Fields>

equals

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

equals

public boolean equals(TableInfo that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public TableInfo._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TableInfo,TableInfo._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<TableInfo,TableInfo._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<TableInfo,TableInfo._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.