org.apache.blur.thrift.generated
Class TableStats

java.lang.Object
  extended by org.apache.blur.thrift.generated.TableStats
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TableStats>, TBase<TableStats,TableStats._Fields>

public class TableStats
extends Object
implements TBase<TableStats,TableStats._Fields>, Serializable, Cloneable

TableStats holds the statistics for a given table.

See Also:
Serialized Form

Nested Class Summary
static class TableStats._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 long bytes
          The size in bytes.
static Map<TableStats._Fields,FieldMetaData> metaDataMap
           
 long recordCount
          The record count.
 long rowCount
          The row count.
 String tableName
          The table name.
 
Constructor Summary
TableStats()
           
TableStats(String tableName, long bytes, long recordCount, long rowCount)
           
TableStats(TableStats other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(TableStats other)
           
 TableStats deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TableStats that)
           
 TableStats._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 long getBytes()
          The size in bytes.
 Object getFieldValue(TableStats._Fields field)
          Get a field's value by field variable.
 long getRecordCount()
          The record count.
 long getRowCount()
          The row count.
 String getTableName()
          The table name.
 int hashCode()
           
 boolean isSet(TableStats._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetBytes()
          Returns true if field bytes is set (has been assigned a value) and false otherwise
 boolean isSetRecordCount()
          Returns true if field recordCount is set (has been assigned a value) and false otherwise
 boolean isSetRowCount()
          Returns true if field rowCount is set (has been assigned a value) and false otherwise
 boolean isSetTableName()
          Returns true if field tableName is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 TableStats setBytes(long bytes)
          The size in bytes.
 void setBytesIsSet(boolean value)
           
 void setFieldValue(TableStats._Fields field, Object value)
          Set a field's value by field variable.
 TableStats setRecordCount(long recordCount)
          The record count.
 void setRecordCountIsSet(boolean value)
           
 TableStats setRowCount(long rowCount)
          The row count.
 void setRowCountIsSet(boolean value)
           
 TableStats setTableName(String tableName)
          The table name.
 void setTableNameIsSet(boolean value)
           
 String toString()
           
 void unsetBytes()
           
 void unsetRecordCount()
           
 void unsetRowCount()
           
 void unsetTableName()
           
 void validate()
           
 void write(TProtocol oprot)
          Writes the objects out to the protocol
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

tableName

public String tableName
The table name.


bytes

public long bytes
The size in bytes.


recordCount

public long recordCount
The record count.


rowCount

public long rowCount
The row count.


metaDataMap

public static final Map<TableStats._Fields,FieldMetaData> metaDataMap
Constructor Detail

TableStats

public TableStats()

TableStats

public TableStats(String tableName,
                  long bytes,
                  long recordCount,
                  long rowCount)

TableStats

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

Method Detail

deepCopy

public TableStats deepCopy()
Specified by:
deepCopy in interface TBase<TableStats,TableStats._Fields>

clear

public void clear()
Description copied from interface: TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface TBase<TableStats,TableStats._Fields>

getTableName

public String getTableName()
The table name.


setTableName

public TableStats setTableName(String tableName)
The table name.


unsetTableName

public void unsetTableName()

isSetTableName

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


setTableNameIsSet

public void setTableNameIsSet(boolean value)

getBytes

public long getBytes()
The size in bytes.


setBytes

public TableStats setBytes(long bytes)
The size in bytes.


unsetBytes

public void unsetBytes()

isSetBytes

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


setBytesIsSet

public void setBytesIsSet(boolean value)

getRecordCount

public long getRecordCount()
The record count.


setRecordCount

public TableStats setRecordCount(long recordCount)
The record count.


unsetRecordCount

public void unsetRecordCount()

isSetRecordCount

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


setRecordCountIsSet

public void setRecordCountIsSet(boolean value)

getRowCount

public long getRowCount()
The row count.


setRowCount

public TableStats setRowCount(long rowCount)
The row count.


unsetRowCount

public void unsetRowCount()

isSetRowCount

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


setRowCountIsSet

public void setRowCountIsSet(boolean value)

setFieldValue

public void setFieldValue(TableStats._Fields field,
                          Object value)
Description copied from interface: TBase
Set a field's value by field variable. Primitive types must be "boxed" in the appropriate object wrapper type.

Specified by:
setFieldValue in interface TBase<TableStats,TableStats._Fields>

getFieldValue

public Object getFieldValue(TableStats._Fields field)
Description copied from interface: TBase
Get a field's value by field variable. Primitive types will be wrapped in the appropriate "boxed" types.

Specified by:
getFieldValue in interface TBase<TableStats,TableStats._Fields>

isSet

public boolean isSet(TableStats._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface TBase<TableStats,TableStats._Fields>

equals

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

equals

public boolean equals(TableStats that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public TableStats._Fields fieldForId(int fieldId)
Description copied from interface: TBase
Get the F instance that corresponds to fieldId.

Specified by:
fieldForId in interface TBase<TableStats,TableStats._Fields>

read

public void read(TProtocol iprot)
          throws TException
Description copied from interface: TBase
Reads the TObject from the given input protocol.

Specified by:
read in interface TBase<TableStats,TableStats._Fields>
Parameters:
iprot - Input protocol
Throws:
TException

write

public void write(TProtocol oprot)
           throws TException
Description copied from interface: TBase
Writes the objects out to the protocol

Specified by:
write in interface TBase<TableStats,TableStats._Fields>
Parameters:
oprot - Output protocol
Throws:
TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws TException
Throws:
TException


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