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,TRegionInfo._Fields>

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

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
 ByteBuffer endKey
           
 long id
           
static Map<TRegionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer name
           
 int port
           
 ByteBuffer serverName
           
 ByteBuffer startKey
           
 byte version
           
 
Constructor Summary
TRegionInfo()
           
TRegionInfo(ByteBuffer startKey, ByteBuffer endKey, long id, ByteBuffer name, byte version, ByteBuffer serverName, int port)
           
TRegionInfo(TRegionInfo other)
          Performs a deep copy on other.
 
Method Summary
 ByteBuffer bufferForEndKey()
           
 ByteBuffer bufferForName()
           
 ByteBuffer bufferForServerName()
           
 ByteBuffer bufferForStartKey()
           
 void clear()
           
 int compareTo(TRegionInfo other)
           
 TRegionInfo deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TRegionInfo that)
           
 TRegionInfo._Fields fieldForId(int fieldId)
           
 byte[] getEndKey()
           
 Object getFieldValue(TRegionInfo._Fields field)
           
 long getId()
           
 byte[] getName()
           
 int getPort()
           
 byte[] getServerName()
           
 byte[] getStartKey()
           
 byte getVersion()
           
 int hashCode()
           
 boolean isSet(TRegionInfo._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetEndKey()
          Returns true if field endKey is set (has been assigned a value) and false otherwise
 boolean isSetId()
          Returns true if field id is set (has been assigned a value) and false otherwise
 boolean isSetName()
          Returns true if field name is set (has been assigned a value) and false otherwise
 boolean isSetPort()
          Returns true if field port is set (has been assigned a value) and false otherwise
 boolean isSetServerName()
          Returns true if field serverName is set (has been assigned a value) and false otherwise
 boolean isSetStartKey()
          Returns true if field startKey is set (has been assigned a value) and false otherwise
 boolean isSetVersion()
          Returns true if field version is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TRegionInfo setEndKey(byte[] endKey)
           
 TRegionInfo setEndKey(ByteBuffer endKey)
           
 void setEndKeyIsSet(boolean value)
           
 void setFieldValue(TRegionInfo._Fields field, Object value)
           
 TRegionInfo setId(long id)
           
 void setIdIsSet(boolean value)
           
 TRegionInfo setName(byte[] name)
           
 TRegionInfo setName(ByteBuffer name)
           
 void setNameIsSet(boolean value)
           
 TRegionInfo setPort(int port)
           
 void setPortIsSet(boolean value)
           
 TRegionInfo setServerName(byte[] serverName)
           
 TRegionInfo setServerName(ByteBuffer serverName)
           
 void setServerNameIsSet(boolean value)
           
 TRegionInfo setStartKey(byte[] startKey)
           
 TRegionInfo setStartKey(ByteBuffer startKey)
           
 void setStartKeyIsSet(boolean value)
           
 TRegionInfo setVersion(byte version)
           
 void setVersionIsSet(boolean value)
           
 String toString()
           
 void unsetEndKey()
           
 void unsetId()
           
 void unsetName()
           
 void unsetPort()
           
 void unsetServerName()
           
 void unsetStartKey()
           
 void unsetVersion()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

startKey

public ByteBuffer startKey

endKey

public ByteBuffer endKey

id

public long id

name

public ByteBuffer name

version

public byte version

serverName

public ByteBuffer serverName

port

public int port

metaDataMap

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

TRegionInfo

public TRegionInfo()

TRegionInfo

public TRegionInfo(ByteBuffer startKey,
                   ByteBuffer endKey,
                   long id,
                   ByteBuffer name,
                   byte version,
                   ByteBuffer serverName,
                   int port)

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,TRegionInfo._Fields>

clear

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

getStartKey

public byte[] getStartKey()

bufferForStartKey

public ByteBuffer bufferForStartKey()

setStartKey

public TRegionInfo setStartKey(byte[] startKey)

setStartKey

public TRegionInfo setStartKey(ByteBuffer startKey)

unsetStartKey

public void unsetStartKey()

isSetStartKey

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


setStartKeyIsSet

public void setStartKeyIsSet(boolean value)

getEndKey

public byte[] getEndKey()

bufferForEndKey

public ByteBuffer bufferForEndKey()

setEndKey

public TRegionInfo setEndKey(byte[] endKey)

setEndKey

public TRegionInfo setEndKey(ByteBuffer endKey)

unsetEndKey

public void unsetEndKey()

isSetEndKey

public boolean isSetEndKey()
Returns true if field endKey is set (has been assigned 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 assigned a value) and false otherwise


setIdIsSet

public void setIdIsSet(boolean value)

getName

public byte[] getName()

bufferForName

public ByteBuffer bufferForName()

setName

public TRegionInfo setName(byte[] name)

setName

public TRegionInfo setName(ByteBuffer name)

unsetName

public void unsetName()

isSetName

public boolean isSetName()
Returns true if field name is set (has been assigned 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 assigned a value) and false otherwise


setVersionIsSet

public void setVersionIsSet(boolean value)

getServerName

public byte[] getServerName()

bufferForServerName

public ByteBuffer bufferForServerName()

setServerName

public TRegionInfo setServerName(byte[] serverName)

setServerName

public TRegionInfo setServerName(ByteBuffer serverName)

unsetServerName

public void unsetServerName()

isSetServerName

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


setServerNameIsSet

public void setServerNameIsSet(boolean value)

getPort

public int getPort()

setPort

public TRegionInfo setPort(int port)

unsetPort

public void unsetPort()

isSetPort

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


setPortIsSet

public void setPortIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

Specified by:
isSet in interface org.apache.thrift.TBase<TRegionInfo,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>

fieldForId

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

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,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,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 © 2007–2016 The Apache Software Foundation. All rights reserved.