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

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

public class TableInfo
extends java.lang.Object
implements org.apache.thrift.TBase<TableInfo,TableInfo._Fields>, java.io.Serializable, java.lang.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 java.util.Map<TableInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 Compacting minor
           
 int onlineTablets
           
 double queryByteRate
           
 double queryRate
           
 long recs
           
 long recsInMemory
           
 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)
           
TableInfo(TableInfo other)
          Performs a deep copy on other.
 
Method Summary
 TableInfo clone()
          Deprecated. 
 int compareTo(TableInfo other)
           
 TableInfo deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(TableInfo that)
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(TableInfo._Fields field)
           
 double getIngestByteRate()
           
 double getIngestRate()
           
 Compacting getMajor()
           
 Compacting getMinor()
           
 int getOnlineTablets()
           
 double getQueryByteRate()
           
 double getQueryRate()
           
 long getRecs()
           
 long getRecsInMemory()
           
 int getTablets()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(TableInfo._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetIngestByteRate()
          Returns true if field ingestByteRate is set (has been asigned a value) and false otherwise
 boolean isSetIngestRate()
          Returns true if field ingestRate is set (has been asigned a value) and false otherwise
 boolean isSetMajor()
          Returns true if field major is set (has been asigned a value) and false otherwise
 boolean isSetMinor()
          Returns true if field minor is set (has been asigned a value) and false otherwise
 boolean isSetOnlineTablets()
          Returns true if field onlineTablets is set (has been asigned a value) and false otherwise
 boolean isSetQueryByteRate()
          Returns true if field queryByteRate is set (has been asigned a value) and false otherwise
 boolean isSetQueryRate()
          Returns true if field queryRate is set (has been asigned a value) and false otherwise
 boolean isSetRecs()
          Returns true if field recs is set (has been asigned a value) and false otherwise
 boolean isSetRecsInMemory()
          Returns true if field recsInMemory is set (has been asigned a value) and false otherwise
 boolean isSetTablets()
          Returns true if field tablets is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(TableInfo._Fields field, java.lang.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 setTablets(int tablets)
           
 void setTabletsIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetIngestByteRate()
           
 void unsetIngestRate()
           
 void unsetMajor()
           
 void unsetMinor()
           
 void unsetOnlineTablets()
           
 void unsetQueryByteRate()
           
 void unsetQueryRate()
           
 void unsetRecs()
           
 void unsetRecsInMemory()
           
 void unsetTablets()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
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

metaDataMap

public static final java.util.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)

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>

clone

@Deprecated
public TableInfo clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

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 asigned 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 asigned 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 asigned 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 asigned 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 asigned 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 asigned 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 asigned 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 asigned 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 asigned 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 asigned a value) and false otherwise


setMajorIsSet

public void setMajorIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

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

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
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 asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<TableInfo,TableInfo._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<TableInfo,TableInfo._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(TableInfo that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

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

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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

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


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