Class TKey
- java.lang.Object
-
- org.apache.accumulo.core.dataImpl.thrift.TKey
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TKey>,org.apache.thrift.TBase<TKey,TKey._Fields>,org.apache.thrift.TSerializable
public class TKey extends Object implements org.apache.thrift.TBase<TKey,TKey._Fields>, Serializable, Cloneable, Comparable<TKey>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTKey._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description ByteBuffercolFamilyByteBuffercolQualifierByteBuffercolVisibilitystatic Map<TKey._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapByteBufferrowlongtimestamp
-
Constructor Summary
Constructors Constructor Description TKey()TKey(ByteBuffer row, ByteBuffer colFamily, ByteBuffer colQualifier, ByteBuffer colVisibility, long timestamp)TKey(TKey other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBufferbufferForColFamily()ByteBufferbufferForColQualifier()ByteBufferbufferForColVisibility()ByteBufferbufferForRow()voidclear()intcompareTo(TKey other)TKeydeepCopy()booleanequals(Object that)booleanequals(TKey that)TKey._FieldsfieldForId(int fieldId)byte[]getColFamily()byte[]getColQualifier()byte[]getColVisibility()ObjectgetFieldValue(TKey._Fields field)byte[]getRow()longgetTimestamp()inthashCode()booleanisSet(TKey._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetColFamily()Returns true if field colFamily is set (has been assigned a value) and false otherwisebooleanisSetColQualifier()Returns true if field colQualifier is set (has been assigned a value) and false otherwisebooleanisSetColVisibility()Returns true if field colVisibility is set (has been assigned a value) and false otherwisebooleanisSetRow()Returns true if field row is set (has been assigned a value) and false otherwisebooleanisSetTimestamp()Returns true if field timestamp is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TKeysetColFamily(byte[] colFamily)TKeysetColFamily(ByteBuffer colFamily)voidsetColFamilyIsSet(boolean value)TKeysetColQualifier(byte[] colQualifier)TKeysetColQualifier(ByteBuffer colQualifier)voidsetColQualifierIsSet(boolean value)TKeysetColVisibility(byte[] colVisibility)TKeysetColVisibility(ByteBuffer colVisibility)voidsetColVisibilityIsSet(boolean value)voidsetFieldValue(TKey._Fields field, Object value)TKeysetRow(byte[] row)TKeysetRow(ByteBuffer row)voidsetRowIsSet(boolean value)TKeysetTimestamp(long timestamp)voidsetTimestampIsSet(boolean value)StringtoString()voidunsetColFamily()voidunsetColQualifier()voidunsetColVisibility()voidunsetRow()voidunsetTimestamp()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
row
public ByteBuffer row
-
colFamily
public ByteBuffer colFamily
-
colQualifier
public ByteBuffer colQualifier
-
colVisibility
public ByteBuffer colVisibility
-
timestamp
public long timestamp
-
metaDataMap
public static final Map<TKey._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TKey
public TKey()
-
TKey
public TKey(ByteBuffer row, ByteBuffer colFamily, ByteBuffer colQualifier, ByteBuffer colVisibility, long timestamp)
-
TKey
public TKey(TKey other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TKey deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TKey,TKey._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TKey,TKey._Fields>
-
getRow
public byte[] getRow()
-
bufferForRow
public ByteBuffer bufferForRow()
-
setRow
public TKey setRow(byte[] row)
-
setRow
public TKey setRow(ByteBuffer row)
-
unsetRow
public void unsetRow()
-
isSetRow
public boolean isSetRow()
Returns true if field row is set (has been assigned a value) and false otherwise
-
setRowIsSet
public void setRowIsSet(boolean value)
-
getColFamily
public byte[] getColFamily()
-
bufferForColFamily
public ByteBuffer bufferForColFamily()
-
setColFamily
public TKey setColFamily(byte[] colFamily)
-
setColFamily
public TKey setColFamily(ByteBuffer colFamily)
-
unsetColFamily
public void unsetColFamily()
-
isSetColFamily
public boolean isSetColFamily()
Returns true if field colFamily is set (has been assigned a value) and false otherwise
-
setColFamilyIsSet
public void setColFamilyIsSet(boolean value)
-
getColQualifier
public byte[] getColQualifier()
-
bufferForColQualifier
public ByteBuffer bufferForColQualifier()
-
setColQualifier
public TKey setColQualifier(byte[] colQualifier)
-
setColQualifier
public TKey setColQualifier(ByteBuffer colQualifier)
-
unsetColQualifier
public void unsetColQualifier()
-
isSetColQualifier
public boolean isSetColQualifier()
Returns true if field colQualifier is set (has been assigned a value) and false otherwise
-
setColQualifierIsSet
public void setColQualifierIsSet(boolean value)
-
getColVisibility
public byte[] getColVisibility()
-
bufferForColVisibility
public ByteBuffer bufferForColVisibility()
-
setColVisibility
public TKey setColVisibility(byte[] colVisibility)
-
setColVisibility
public TKey setColVisibility(ByteBuffer colVisibility)
-
unsetColVisibility
public void unsetColVisibility()
-
isSetColVisibility
public boolean isSetColVisibility()
Returns true if field colVisibility is set (has been assigned a value) and false otherwise
-
setColVisibilityIsSet
public void setColVisibilityIsSet(boolean value)
-
getTimestamp
public long getTimestamp()
-
setTimestamp
public TKey setTimestamp(long timestamp)
-
unsetTimestamp
public void unsetTimestamp()
-
isSetTimestamp
public boolean isSetTimestamp()
Returns true if field timestamp is set (has been assigned a value) and false otherwise
-
setTimestampIsSet
public void setTimestampIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TKey._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TKey,TKey._Fields>
-
getFieldValue
public Object getFieldValue(TKey._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TKey,TKey._Fields>
-
isSet
public boolean isSet(TKey._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<TKey,TKey._Fields>
-
equals
public boolean equals(TKey that)
-
compareTo
public int compareTo(TKey other)
- Specified by:
compareToin interfaceComparable<TKey>
-
fieldForId
public TKey._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TKey,TKey._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
-
-