Class TKey
- java.lang.Object
-
- org.apache.accumulo.core.data.thrift.TKey
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<TKey>
,org.apache.thrift.TBase<TKey,TKey._Fields>
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 class
TKey._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
colFamily
ByteBuffer
colQualifier
ByteBuffer
colVisibility
static Map<TKey._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
ByteBuffer
row
long
timestamp
-
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 ByteBuffer
bufferForColFamily()
ByteBuffer
bufferForColQualifier()
ByteBuffer
bufferForColVisibility()
ByteBuffer
bufferForRow()
void
clear()
int
compareTo(TKey other)
TKey
deepCopy()
boolean
equals(Object that)
boolean
equals(TKey that)
TKey._Fields
fieldForId(int fieldId)
byte[]
getColFamily()
byte[]
getColQualifier()
byte[]
getColVisibility()
Object
getFieldValue(TKey._Fields field)
byte[]
getRow()
long
getTimestamp()
int
hashCode()
boolean
isSet(TKey._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetColFamily()
Returns true if field colFamily is set (has been assigned a value) and false otherwiseboolean
isSetColQualifier()
Returns true if field colQualifier is set (has been assigned a value) and false otherwiseboolean
isSetColVisibility()
Returns true if field colVisibility is set (has been assigned a value) and false otherwiseboolean
isSetRow()
Returns true if field row is set (has been assigned a value) and false otherwiseboolean
isSetTimestamp()
Returns true if field timestamp is set (has been assigned a value) and false otherwisevoid
read(org.apache.thrift.protocol.TProtocol iprot)
TKey
setColFamily(byte[] colFamily)
TKey
setColFamily(ByteBuffer colFamily)
void
setColFamilyIsSet(boolean value)
TKey
setColQualifier(byte[] colQualifier)
TKey
setColQualifier(ByteBuffer colQualifier)
void
setColQualifierIsSet(boolean value)
TKey
setColVisibility(byte[] colVisibility)
TKey
setColVisibility(ByteBuffer colVisibility)
void
setColVisibilityIsSet(boolean value)
void
setFieldValue(TKey._Fields field, Object value)
TKey
setRow(byte[] row)
TKey
setRow(ByteBuffer row)
void
setRowIsSet(boolean value)
TKey
setTimestamp(long timestamp)
void
setTimestampIsSet(boolean value)
String
toString()
void
unsetColFamily()
void
unsetColQualifier()
void
unsetColVisibility()
void
unsetRow()
void
unsetTimestamp()
void
validate()
void
write(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:
deepCopy
in interfaceorg.apache.thrift.TBase<TKey,TKey._Fields>
-
clear
public void clear()
- Specified by:
clear
in 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:
setFieldValue
in interfaceorg.apache.thrift.TBase<TKey,TKey._Fields>
-
getFieldValue
public Object getFieldValue(TKey._Fields field)
- Specified by:
getFieldValue
in 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:
isSet
in interfaceorg.apache.thrift.TBase<TKey,TKey._Fields>
-
equals
public boolean equals(TKey that)
-
compareTo
public int compareTo(TKey other)
- Specified by:
compareTo
in interfaceComparable<TKey>
-
fieldForId
public TKey._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<TKey,TKey._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.apache.thrift.TBase<TKey,TKey._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 interfaceorg.apache.thrift.TBase<TKey,TKey._Fields>
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-