org.apache.hadoop.hbase.thrift.generated
Class TRegionInfo

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

public class TRegionInfo
extends Object
implements org.apache.thrift.TBase<TRegionInfo._Fields>, Serializable, Cloneable, Comparable<TRegionInfo>

A TRegionInfo contains information about an HTable region.

See Also:
Serialized Form

Nested Class Summary
static class TRegionInfo._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 byte[] endKey
           
 long id
           
static Map<TRegionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 byte[] name
           
 byte[] startKey
           
 byte version
           
 
Constructor Summary
TRegionInfo()
           
TRegionInfo(byte[] startKey, byte[] endKey, long id, byte[] name, byte version)
           
TRegionInfo(TRegionInfo other)
          Performs a deep copy on other.
 
Method Summary
 TRegionInfo clone()
          Deprecated. 
 int compareTo(TRegionInfo other)
           
 TRegionInfo deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TRegionInfo that)
           
 byte[] getEndKey()
           
 Object getFieldValue(int fieldId)
           
 Object getFieldValue(TRegionInfo._Fields field)
           
 long getId()
           
 byte[] getName()
           
 byte[] getStartKey()
           
 byte getVersion()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(TRegionInfo._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetEndKey()
          Returns true if field endKey is set (has been asigned a value) and false otherwise
 boolean isSetId()
          Returns true if field id is set (has been asigned a value) and false otherwise
 boolean isSetName()
          Returns true if field name is set (has been asigned a value) and false otherwise
 boolean isSetStartKey()
          Returns true if field startKey is set (has been asigned a value) and false otherwise
 boolean isSetVersion()
          Returns true if field version is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TRegionInfo setEndKey(byte[] endKey)
           
 void setEndKeyIsSet(boolean value)
           
 void setFieldValue(int fieldID, Object value)
           
 void setFieldValue(TRegionInfo._Fields field, Object value)
           
 TRegionInfo setId(long id)
           
 void setIdIsSet(boolean value)
           
 TRegionInfo setName(byte[] name)
           
 void setNameIsSet(boolean value)
           
 TRegionInfo setStartKey(byte[] startKey)
           
 void setStartKeyIsSet(boolean value)
           
 TRegionInfo setVersion(byte version)
           
 void setVersionIsSet(boolean value)
           
 String toString()
           
 void unsetEndKey()
           
 void unsetId()
           
 void unsetName()
           
 void unsetStartKey()
           
 void unsetVersion()
           
 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

startKey

public byte[] startKey

endKey

public byte[] endKey

id

public long id

name

public byte[] name

version

public byte version

metaDataMap

public static final Map<TRegionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

TRegionInfo

public TRegionInfo()

TRegionInfo

public TRegionInfo(byte[] startKey,
                   byte[] endKey,
                   long id,
                   byte[] name,
                   byte version)

TRegionInfo

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

Method Detail

deepCopy

public TRegionInfo deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<TRegionInfo._Fields>

clone

@Deprecated
public TRegionInfo clone()
Deprecated. 

Overrides:
clone in class Object

getStartKey

public byte[] getStartKey()

setStartKey

public TRegionInfo setStartKey(byte[] startKey)

unsetStartKey

public void unsetStartKey()

isSetStartKey

public boolean isSetStartKey()
Returns true if field startKey is set (has been asigned a value) and false otherwise


setStartKeyIsSet

public void setStartKeyIsSet(boolean value)

getEndKey

public byte[] getEndKey()

setEndKey

public TRegionInfo setEndKey(byte[] endKey)

unsetEndKey

public void unsetEndKey()

isSetEndKey

public boolean isSetEndKey()
Returns true if field endKey is set (has been asigned a value) and false otherwise


setEndKeyIsSet

public void setEndKeyIsSet(boolean value)

getId

public long getId()

setId

public TRegionInfo setId(long id)

unsetId

public void unsetId()

isSetId

public boolean isSetId()
Returns true if field id is set (has been asigned a value) and false otherwise


setIdIsSet

public void setIdIsSet(boolean value)

getName

public byte[] getName()

setName

public TRegionInfo setName(byte[] name)

unsetName

public void unsetName()

isSetName

public boolean isSetName()
Returns true if field name is set (has been asigned a value) and false otherwise


setNameIsSet

public void setNameIsSet(boolean value)

getVersion

public byte getVersion()

setVersion

public TRegionInfo setVersion(byte version)

unsetVersion

public void unsetVersion()

isSetVersion

public boolean isSetVersion()
Returns true if field version is set (has been asigned a value) and false otherwise


setVersionIsSet

public void setVersionIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

public Object getFieldValue(TRegionInfo._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TRegionInfo._Fields>

getFieldValue

public Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TRegionInfo._Fields>

isSet

public boolean isSet(TRegionInfo._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<TRegionInfo._Fields>

isSet

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

equals

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

equals

public boolean equals(TRegionInfo that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TRegionInfo._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<TRegionInfo._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 © 2011 The Apache Software Foundation. All Rights Reserved.