Class TableInfo
- java.lang.Object
-
- org.apache.accumulo.core.master.thrift.TableInfo
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TableInfo>,org.apache.thrift.TBase<TableInfo,TableInfo._Fields>,org.apache.thrift.TSerializable
public class TableInfo extends Object implements org.apache.thrift.TBase<TableInfo,TableInfo._Fields>, Serializable, Cloneable, Comparable<TableInfo>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTableInfo._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description doubleingestByteRatedoubleingestRateCompactingmajorsstatic Map<TableInfo._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapCompactingminorsintonlineTabletsdoublequeryByteRatedoublequeryRatelongrecslongrecsInMemorydoublescanRateCompactingscansinttablets
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TableInfo other)TableInfodeepCopy()booleanequals(Object that)booleanequals(TableInfo that)TableInfo._FieldsfieldForId(int fieldId)ObjectgetFieldValue(TableInfo._Fields field)doublegetIngestByteRate()doublegetIngestRate()CompactinggetMajors()CompactinggetMinors()intgetOnlineTablets()doublegetQueryByteRate()doublegetQueryRate()longgetRecs()longgetRecsInMemory()doublegetScanRate()CompactinggetScans()intgetTablets()inthashCode()booleanisSet(TableInfo._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetIngestByteRate()Returns true if field ingestByteRate is set (has been assigned a value) and false otherwisebooleanisSetIngestRate()Returns true if field ingestRate is set (has been assigned a value) and false otherwisebooleanisSetMajors()Returns true if field majors is set (has been assigned a value) and false otherwisebooleanisSetMinors()Returns true if field minors is set (has been assigned a value) and false otherwisebooleanisSetOnlineTablets()Returns true if field onlineTablets is set (has been assigned a value) and false otherwisebooleanisSetQueryByteRate()Returns true if field queryByteRate is set (has been assigned a value) and false otherwisebooleanisSetQueryRate()Returns true if field queryRate is set (has been assigned a value) and false otherwisebooleanisSetRecs()Returns true if field recs is set (has been assigned a value) and false otherwisebooleanisSetRecsInMemory()Returns true if field recsInMemory is set (has been assigned a value) and false otherwisebooleanisSetScanRate()Returns true if field scanRate is set (has been assigned a value) and false otherwisebooleanisSetScans()Returns true if field scans is set (has been assigned a value) and false otherwisebooleanisSetTablets()Returns true if field tablets is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(TableInfo._Fields field, Object value)TableInfosetIngestByteRate(double ingestByteRate)voidsetIngestByteRateIsSet(boolean value)TableInfosetIngestRate(double ingestRate)voidsetIngestRateIsSet(boolean value)TableInfosetMajors(Compacting majors)voidsetMajorsIsSet(boolean value)TableInfosetMinors(Compacting minors)voidsetMinorsIsSet(boolean value)TableInfosetOnlineTablets(int onlineTablets)voidsetOnlineTabletsIsSet(boolean value)TableInfosetQueryByteRate(double queryByteRate)voidsetQueryByteRateIsSet(boolean value)TableInfosetQueryRate(double queryRate)voidsetQueryRateIsSet(boolean value)TableInfosetRecs(long recs)TableInfosetRecsInMemory(long recsInMemory)voidsetRecsInMemoryIsSet(boolean value)voidsetRecsIsSet(boolean value)TableInfosetScanRate(double scanRate)voidsetScanRateIsSet(boolean value)TableInfosetScans(Compacting scans)voidsetScansIsSet(boolean value)TableInfosetTablets(int tablets)voidsetTabletsIsSet(boolean value)StringtoString()voidunsetIngestByteRate()voidunsetIngestRate()voidunsetMajors()voidunsetMinors()voidunsetOnlineTablets()voidunsetQueryByteRate()voidunsetQueryRate()voidunsetRecs()voidunsetRecsInMemory()voidunsetScanRate()voidunsetScans()voidunsetTablets()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
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:
deepCopyin interfaceorg.apache.thrift.TBase<TableInfo,TableInfo._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.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:
setFieldValuein interfaceorg.apache.thrift.TBase<TableInfo,TableInfo._Fields>
-
getFieldValue
public Object getFieldValue(TableInfo._Fields field)
- Specified by:
getFieldValuein interfaceorg.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:
isSetin interfaceorg.apache.thrift.TBase<TableInfo,TableInfo._Fields>
-
equals
public boolean equals(TableInfo that)
-
compareTo
public int compareTo(TableInfo other)
- Specified by:
compareToin interfaceComparable<TableInfo>
-
fieldForId
public TableInfo._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TableInfo,TableInfo._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-