org.apache.accumulo.core.data.thrift
Class TKeyExtent

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

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

See Also:
Serialized Form

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

table

public ByteBuffer table

endRow

public ByteBuffer endRow

prevEndRow

public ByteBuffer prevEndRow

metaDataMap

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

TKeyExtent

public TKeyExtent()

TKeyExtent

public TKeyExtent(ByteBuffer table,
                  ByteBuffer endRow,
                  ByteBuffer prevEndRow)

TKeyExtent

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

Method Detail

deepCopy

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

clear

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

getTable

public byte[] getTable()

bufferForTable

public ByteBuffer bufferForTable()

setTable

public TKeyExtent setTable(byte[] table)

setTable

public TKeyExtent setTable(ByteBuffer table)

unsetTable

public void unsetTable()

isSetTable

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


setTableIsSet

public void setTableIsSet(boolean value)

getEndRow

public byte[] getEndRow()

bufferForEndRow

public ByteBuffer bufferForEndRow()

setEndRow

public TKeyExtent setEndRow(byte[] endRow)

setEndRow

public TKeyExtent 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 TKeyExtent setPrevEndRow(byte[] prevEndRow)

setPrevEndRow

public TKeyExtent 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(TKeyExtent._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TKeyExtent,TKeyExtent._Fields>

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(TKeyExtent that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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