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

java.lang.Object
  extended by org.apache.accumulo.core.data.thrift.TKey
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<TKey>, org.apache.thrift.TBase<TKey,TKey._Fields>

public class TKey
extends java.lang.Object
implements org.apache.thrift.TBase<TKey,TKey._Fields>, java.io.Serializable, java.lang.Cloneable

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
 byte[] colFamily
           
 byte[] colQualifier
           
 byte[] colVisibility
           
static java.util.Map<TKey._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 byte[] row
           
 long timestamp
           
 
Constructor Summary
TKey()
           
TKey(byte[] row, byte[] colFamily, byte[] colQualifier, byte[] colVisibility, long timestamp)
           
TKey(TKey other)
          Performs a deep copy on other.
 
Method Summary
 TKey clone()
          Deprecated. 
 int compareTo(TKey other)
           
 TKey deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(TKey that)
           
 byte[] getColFamily()
           
 byte[] getColQualifier()
           
 byte[] getColVisibility()
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(TKey._Fields field)
           
 byte[] getRow()
           
 long getTimestamp()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(TKey._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetColFamily()
          Returns true if field colFamily is set (has been asigned a value) and false otherwise
 boolean isSetColQualifier()
          Returns true if field colQualifier is set (has been asigned a value) and false otherwise
 boolean isSetColVisibility()
          Returns true if field colVisibility is set (has been asigned a value) and false otherwise
 boolean isSetRow()
          Returns true if field row is set (has been asigned a value) and false otherwise
 boolean isSetTimestamp()
          Returns true if field timestamp is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TKey setColFamily(byte[] colFamily)
           
 void setColFamilyIsSet(boolean value)
           
 TKey setColQualifier(byte[] colQualifier)
           
 void setColQualifierIsSet(boolean value)
           
 TKey setColVisibility(byte[] colVisibility)
           
 void setColVisibilityIsSet(boolean value)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(TKey._Fields field, java.lang.Object value)
           
 TKey setRow(byte[] row)
           
 void setRowIsSet(boolean value)
           
 TKey setTimestamp(long timestamp)
           
 void setTimestampIsSet(boolean value)
           
 java.lang.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
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

row

public byte[] row

colFamily

public byte[] colFamily

colQualifier

public byte[] colQualifier

colVisibility

public byte[] colVisibility

timestamp

public long timestamp

metaDataMap

public static final java.util.Map<TKey._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

TKey

public TKey()

TKey

public TKey(byte[] row,
            byte[] colFamily,
            byte[] colQualifier,
            byte[] 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>

clone

@Deprecated
public TKey clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getRow

public byte[] getRow()

setRow

public TKey setRow(byte[] row)

unsetRow

public void unsetRow()

isSetRow

public boolean isSetRow()
Returns true if field row is set (has been asigned a value) and false otherwise


setRowIsSet

public void setRowIsSet(boolean value)

getColFamily

public byte[] getColFamily()

setColFamily

public TKey setColFamily(byte[] colFamily)

unsetColFamily

public void unsetColFamily()

isSetColFamily

public boolean isSetColFamily()
Returns true if field colFamily is set (has been asigned a value) and false otherwise


setColFamilyIsSet

public void setColFamilyIsSet(boolean value)

getColQualifier

public byte[] getColQualifier()

setColQualifier

public TKey setColQualifier(byte[] colQualifier)

unsetColQualifier

public void unsetColQualifier()

isSetColQualifier

public boolean isSetColQualifier()
Returns true if field colQualifier is set (has been asigned a value) and false otherwise


setColQualifierIsSet

public void setColQualifierIsSet(boolean value)

getColVisibility

public byte[] getColVisibility()

setColVisibility

public TKey setColVisibility(byte[] colVisibility)

unsetColVisibility

public void unsetColVisibility()

isSetColVisibility

public boolean isSetColVisibility()
Returns true if field colVisibility is set (has been asigned 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 asigned a value) and false otherwise


setTimestampIsSet

public void setTimestampIsSet(boolean value)

setFieldValue

public void setFieldValue(TKey._Fields field,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TKey,TKey._Fields>

setFieldValue

public void setFieldValue(int fieldID,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TKey,TKey._Fields>

getFieldValue

public java.lang.Object getFieldValue(TKey._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TKey,TKey._Fields>

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
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 asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<TKey,TKey._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<TKey,TKey._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(TKey that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

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

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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.