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

java.lang.Object
  extended by 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
static class TKey._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 ByteBuffer colFamily
           
 ByteBuffer colQualifier
           
 ByteBuffer colVisibility
           
static Map<TKey._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer row
           
 long timestamp
           
 
Constructor Summary
TKey()
           
TKey(ByteBuffer row, ByteBuffer colFamily, ByteBuffer colQualifier, ByteBuffer colVisibility, long timestamp)
           
TKey(TKey other)
          Performs a deep copy on other.
 
Method Summary
 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 otherwise
 boolean isSetColFamily()
          Returns true if field colFamily is set (has been assigned a value) and false otherwise
 boolean isSetColQualifier()
          Returns true if field colQualifier is set (has been assigned a value) and false otherwise
 boolean isSetColVisibility()
          Returns true if field colVisibility is set (has been assigned a value) and false otherwise
 boolean isSetRow()
          Returns true if field row is set (has been assigned a value) and false otherwise
 boolean isSetTimestamp()
          Returns true if field timestamp is set (has been assigned a value) and false otherwise
 void 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 interface org.apache.thrift.TBase<TKey,TKey._Fields>

clear

public void clear()
Specified by:
clear in interface org.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 interface org.apache.thrift.TBase<TKey,TKey._Fields>

getFieldValue

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

equals

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

equals

public boolean equals(TKey that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public TKey._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.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 interface org.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 interface org.apache.thrift.TBase<TKey,TKey._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.