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 classTKeyExtent._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description ByteBufferendRowstatic Map<TKeyExtent._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapByteBufferprevEndRowByteBuffertable
-
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 ByteBufferbufferForEndRow()ByteBufferbufferForPrevEndRow()ByteBufferbufferForTable()voidclear()intcompareTo(TKeyExtent other)TKeyExtentdeepCopy()booleanequals(Object that)booleanequals(TKeyExtent that)TKeyExtent._FieldsfieldForId(int fieldId)byte[]getEndRow()ObjectgetFieldValue(TKeyExtent._Fields field)byte[]getPrevEndRow()byte[]getTable()inthashCode()booleanisSet(TKeyExtent._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetEndRow()Returns true if field endRow is set (has been assigned a value) and false otherwisebooleanisSetPrevEndRow()Returns true if field prevEndRow is set (has been assigned a value) and false otherwisebooleanisSetTable()Returns true if field table is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TKeyExtentsetEndRow(byte[] endRow)TKeyExtentsetEndRow(ByteBuffer endRow)voidsetEndRowIsSet(boolean value)voidsetFieldValue(TKeyExtent._Fields field, Object value)TKeyExtentsetPrevEndRow(byte[] prevEndRow)TKeyExtentsetPrevEndRow(ByteBuffer prevEndRow)voidsetPrevEndRowIsSet(boolean value)TKeyExtentsetTable(byte[] table)TKeyExtentsetTable(ByteBuffer table)voidsetTableIsSet(boolean value)StringtoString()voidunsetEndRow()voidunsetPrevEndRow()voidunsetTable()voidvalidate()voidwrite(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:
deepCopyin interfaceorg.apache.thrift.TBase<TKeyExtent,TKeyExtent._Fields>
-
clear
public void clear()
- Specified by:
clearin 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:
setFieldValuein interfaceorg.apache.thrift.TBase<TKeyExtent,TKeyExtent._Fields>
-
getFieldValue
public Object getFieldValue(TKeyExtent._Fields field)
- Specified by:
getFieldValuein 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:
isSetin interfaceorg.apache.thrift.TBase<TKeyExtent,TKeyExtent._Fields>
-
equals
public boolean equals(TKeyExtent that)
-
compareTo
public int compareTo(TKeyExtent other)
- Specified by:
compareToin interfaceComparable<TKeyExtent>
-
fieldForId
public TKeyExtent._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TKeyExtent,TKeyExtent._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin 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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-