org.apache.accumulo.proxy.thrift
Class KeyExtent

java.lang.Object
  extended by org.apache.accumulo.proxy.thrift.KeyExtent
All Implemented Interfaces:
Serializable, Cloneable, Comparable<KeyExtent>, org.apache.thrift.TBase<KeyExtent,KeyExtent._Fields>

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

See Also:
Serialized Form

Nested Class Summary
static class KeyExtent._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 ByteBuffer endRow
           
static Map<KeyExtent._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer prevEndRow
           
 String tableId
           
 
Constructor Summary
KeyExtent()
           
KeyExtent(KeyExtent other)
          Performs a deep copy on other.
KeyExtent(String tableId, ByteBuffer endRow, ByteBuffer prevEndRow)
           
 
Method Summary
 ByteBuffer bufferForEndRow()
           
 ByteBuffer bufferForPrevEndRow()
           
 void clear()
           
 int compareTo(KeyExtent other)
           
 KeyExtent deepCopy()
           
 boolean equals(KeyExtent that)
           
 boolean equals(Object that)
           
 KeyExtent._Fields fieldForId(int fieldId)
           
 byte[] getEndRow()
           
 Object getFieldValue(KeyExtent._Fields field)
           
 byte[] getPrevEndRow()
           
 String getTableId()
           
 int hashCode()
           
 boolean isSet(KeyExtent._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetEndRow()
          Returns true if field endRow is set (has been assigned a value) and false otherwise
 boolean isSetPrevEndRow()
          Returns true if field prevEndRow is set (has been assigned a value) and false otherwise
 boolean isSetTableId()
          Returns true if field tableId is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 KeyExtent setEndRow(byte[] endRow)
           
 KeyExtent setEndRow(ByteBuffer endRow)
           
 void setEndRowIsSet(boolean value)
           
 void setFieldValue(KeyExtent._Fields field, Object value)
           
 KeyExtent setPrevEndRow(byte[] prevEndRow)
           
 KeyExtent setPrevEndRow(ByteBuffer prevEndRow)
           
 void setPrevEndRowIsSet(boolean value)
           
 KeyExtent setTableId(String tableId)
           
 void setTableIdIsSet(boolean value)
           
 String toString()
           
 void unsetEndRow()
           
 void unsetPrevEndRow()
           
 void unsetTableId()
           
 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

tableId

public String tableId

endRow

public ByteBuffer endRow

prevEndRow

public ByteBuffer prevEndRow

metaDataMap

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

KeyExtent

public KeyExtent()

KeyExtent

public KeyExtent(String tableId,
                 ByteBuffer endRow,
                 ByteBuffer prevEndRow)

KeyExtent

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

Method Detail

deepCopy

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

clear

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

getTableId

public String getTableId()

setTableId

public KeyExtent setTableId(String tableId)

unsetTableId

public void unsetTableId()

isSetTableId

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


setTableIdIsSet

public void setTableIdIsSet(boolean value)

getEndRow

public byte[] getEndRow()

bufferForEndRow

public ByteBuffer bufferForEndRow()

setEndRow

public KeyExtent setEndRow(byte[] endRow)

setEndRow

public KeyExtent setEndRow(ByteBuffer endRow)

unsetEndRow

public void unsetEndRow()

isSetEndRow

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


setEndRowIsSet

public void setEndRowIsSet(boolean value)

getPrevEndRow

public byte[] getPrevEndRow()

bufferForPrevEndRow

public ByteBuffer bufferForPrevEndRow()

setPrevEndRow

public KeyExtent setPrevEndRow(byte[] prevEndRow)

setPrevEndRow

public KeyExtent setPrevEndRow(ByteBuffer prevEndRow)

unsetPrevEndRow

public void unsetPrevEndRow()

isSetPrevEndRow

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


setPrevEndRowIsSet

public void setPrevEndRowIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(KeyExtent that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public KeyExtent._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<KeyExtent,KeyExtent._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<KeyExtent,KeyExtent._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<KeyExtent,KeyExtent._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 © 2013 Apache Accumulo Project. All Rights Reserved.