Class TCompactionStats
- java.lang.Object
-
- org.apache.accumulo.core.tabletserver.thrift.TCompactionStats
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<TCompactionStats>
,org.apache.thrift.TBase<TCompactionStats,TCompactionStats._Fields>
,org.apache.thrift.TSerializable
public class TCompactionStats extends Object implements org.apache.thrift.TBase<TCompactionStats,TCompactionStats._Fields>, Serializable, Cloneable, Comparable<TCompactionStats>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TCompactionStats._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description long
entriesRead
long
entriesWritten
long
fileSize
static Map<TCompactionStats._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
-
Constructor Summary
Constructors Constructor Description TCompactionStats()
TCompactionStats(long entriesRead, long entriesWritten, long fileSize)
TCompactionStats(TCompactionStats other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
int
compareTo(TCompactionStats other)
TCompactionStats
deepCopy()
boolean
equals(Object that)
boolean
equals(TCompactionStats that)
TCompactionStats._Fields
fieldForId(int fieldId)
long
getEntriesRead()
long
getEntriesWritten()
Object
getFieldValue(TCompactionStats._Fields field)
long
getFileSize()
int
hashCode()
boolean
isSet(TCompactionStats._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetEntriesRead()
Returns true if field entriesRead is set (has been assigned a value) and false otherwiseboolean
isSetEntriesWritten()
Returns true if field entriesWritten is set (has been assigned a value) and false otherwiseboolean
isSetFileSize()
Returns true if field fileSize is set (has been assigned a value) and false otherwisevoid
read(org.apache.thrift.protocol.TProtocol iprot)
TCompactionStats
setEntriesRead(long entriesRead)
void
setEntriesReadIsSet(boolean value)
TCompactionStats
setEntriesWritten(long entriesWritten)
void
setEntriesWrittenIsSet(boolean value)
void
setFieldValue(TCompactionStats._Fields field, Object value)
TCompactionStats
setFileSize(long fileSize)
void
setFileSizeIsSet(boolean value)
String
toString()
void
unsetEntriesRead()
void
unsetEntriesWritten()
void
unsetFileSize()
void
validate()
void
write(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
entriesRead
public long entriesRead
-
entriesWritten
public long entriesWritten
-
fileSize
public long fileSize
-
metaDataMap
public static final Map<TCompactionStats._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TCompactionStats
public TCompactionStats()
-
TCompactionStats
public TCompactionStats(long entriesRead, long entriesWritten, long fileSize)
-
TCompactionStats
public TCompactionStats(TCompactionStats other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TCompactionStats deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<TCompactionStats,TCompactionStats._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<TCompactionStats,TCompactionStats._Fields>
-
getEntriesRead
public long getEntriesRead()
-
setEntriesRead
public TCompactionStats setEntriesRead(long entriesRead)
-
unsetEntriesRead
public void unsetEntriesRead()
-
isSetEntriesRead
public boolean isSetEntriesRead()
Returns true if field entriesRead is set (has been assigned a value) and false otherwise
-
setEntriesReadIsSet
public void setEntriesReadIsSet(boolean value)
-
getEntriesWritten
public long getEntriesWritten()
-
setEntriesWritten
public TCompactionStats setEntriesWritten(long entriesWritten)
-
unsetEntriesWritten
public void unsetEntriesWritten()
-
isSetEntriesWritten
public boolean isSetEntriesWritten()
Returns true if field entriesWritten is set (has been assigned a value) and false otherwise
-
setEntriesWrittenIsSet
public void setEntriesWrittenIsSet(boolean value)
-
getFileSize
public long getFileSize()
-
setFileSize
public TCompactionStats setFileSize(long fileSize)
-
unsetFileSize
public void unsetFileSize()
-
isSetFileSize
public boolean isSetFileSize()
Returns true if field fileSize is set (has been assigned a value) and false otherwise
-
setFileSizeIsSet
public void setFileSizeIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TCompactionStats._Fields field, Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<TCompactionStats,TCompactionStats._Fields>
-
getFieldValue
public Object getFieldValue(TCompactionStats._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<TCompactionStats,TCompactionStats._Fields>
-
isSet
public boolean isSet(TCompactionStats._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.thrift.TBase<TCompactionStats,TCompactionStats._Fields>
-
equals
public boolean equals(TCompactionStats that)
-
compareTo
public int compareTo(TCompactionStats other)
- Specified by:
compareTo
in interfaceComparable<TCompactionStats>
-
fieldForId
public TCompactionStats._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<TCompactionStats,TCompactionStats._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in 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:
write
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-