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 major
           
static Map<TableInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 Compacting minor
           
 int onlineTablets
           
 double queryByteRate
           
 double queryRate
           
 long recs
           
 long recsInMemory
           
 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 minor, Compacting major, Compacting scans)
           
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 getMajor()
           
 Compacting getMinor()
           
 int getOnlineTablets()
           
 double getQueryByteRate()
           
 double getQueryRate()
           
 long getRecs()
           
 long getRecsInMemory()
           
 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 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 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 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 setMajor(Compacting major)
           
 void setMajorIsSet(boolean value)
           
 TableInfo setMinor(Compacting minor)
           
 void setMinorIsSet(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 setScans(Compacting scans)
           
 void setScansIsSet(boolean value)
           
 TableInfo setTablets(int tablets)
           
 void setTabletsIsSet(boolean value)
           
 String toString()
           
 void unsetIngestByteRate()
           
 void unsetIngestRate()
           
 void unsetMajor()
           
 void unsetMinor()
           
 void unsetOnlineTablets()
           
 void unsetQueryByteRate()
           
 void unsetQueryRate()
           
 void unsetRecs()
           
 void unsetRecsInMemory()
           
 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

minor

public Compacting minor

major

public Compacting major

scans

public Compacting scans

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 minor,
                 Compacting major,
                 Compacting scans)

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)

getMinor

public Compacting getMinor()

setMinor

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

getMajor

public Compacting getMajor()

setMajor

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

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)

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 © 2014 The Apache Software Foundation. All Rights Reserved.