Class TKeyExtent
- java.lang.Object
-
- org.apache.accumulo.core.dataImpl.thrift.TKeyExtent
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<TKeyExtent>
,org.apache.thrift.TBase<TKeyExtent,TKeyExtent._Fields>
,org.apache.thrift.TSerializable
public class TKeyExtent extends Object implements org.apache.thrift.TBase<TKeyExtent,TKeyExtent._Fields>, Serializable, Cloneable, Comparable<TKeyExtent>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TKeyExtent._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description ByteBuffer
endRow
static Map<TKeyExtent._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
ByteBuffer
prevEndRow
ByteBuffer
table
-
Constructor Summary
Constructors Constructor Description TKeyExtent()
TKeyExtent(ByteBuffer table, ByteBuffer endRow, ByteBuffer prevEndRow)
TKeyExtent(TKeyExtent other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 otherwiseboolean
isSetEndRow()
Returns true if field endRow is set (has been assigned a value) and false otherwiseboolean
isSetPrevEndRow()
Returns true if field prevEndRow is set (has been assigned a value) and false otherwiseboolean
isSetTable()
Returns true if field table is set (has been assigned a value) and false otherwisevoid
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)
-
-
-
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 interfaceorg.apache.thrift.TBase<TKeyExtent,TKeyExtent._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.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 interfaceorg.apache.thrift.TBase<TKeyExtent,TKeyExtent._Fields>
-
getFieldValue
public Object getFieldValue(TKeyExtent._Fields field)
- Specified by:
getFieldValue
in interfaceorg.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 interfaceorg.apache.thrift.TBase<TKeyExtent,TKeyExtent._Fields>
-
equals
public boolean equals(TKeyExtent that)
-
compareTo
public int compareTo(TKeyExtent other)
- Specified by:
compareTo
in interfaceComparable<TKeyExtent>
-
fieldForId
public TKeyExtent._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.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 interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
- Specified by:
write
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-