org.apache.accumulo.proxy.thrift
Class Key

java.lang.Object
  extended by org.apache.accumulo.proxy.thrift.Key
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Key>, org.apache.thrift.TBase<Key,Key._Fields>

public class Key
extends Object
implements org.apache.thrift.TBase<Key,Key._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class Key._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<Key._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer row
           
 long timestamp
           
 
Constructor Summary
Key()
           
Key(ByteBuffer row, ByteBuffer colFamily, ByteBuffer colQualifier, ByteBuffer colVisibility)
           
Key(Key other)
          Performs a deep copy on other.
 
Method Summary
 ByteBuffer bufferForColFamily()
           
 ByteBuffer bufferForColQualifier()
           
 ByteBuffer bufferForColVisibility()
           
 ByteBuffer bufferForRow()
           
 void clear()
           
 int compareTo(Key other)
           
 Key deepCopy()
           
 boolean equals(Key that)
           
 boolean equals(Object that)
           
 Key._Fields fieldForId(int fieldId)
           
 byte[] getColFamily()
           
 byte[] getColQualifier()
           
 byte[] getColVisibility()
           
 Object getFieldValue(Key._Fields field)
           
 byte[] getRow()
           
 long getTimestamp()
           
 int hashCode()
           
 boolean isSet(Key._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)
           
 Key setColFamily(byte[] colFamily)
           
 Key setColFamily(ByteBuffer colFamily)
           
 void setColFamilyIsSet(boolean value)
           
 Key setColQualifier(byte[] colQualifier)
           
 Key setColQualifier(ByteBuffer colQualifier)
           
 void setColQualifierIsSet(boolean value)
           
 Key setColVisibility(byte[] colVisibility)
           
 Key setColVisibility(ByteBuffer colVisibility)
           
 void setColVisibilityIsSet(boolean value)
           
 void setFieldValue(Key._Fields field, Object value)
           
 Key setRow(byte[] row)
           
 Key setRow(ByteBuffer row)
           
 void setRowIsSet(boolean value)
           
 Key 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<Key._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Key

public Key()

Key

public Key(ByteBuffer row,
           ByteBuffer colFamily,
           ByteBuffer colQualifier,
           ByteBuffer colVisibility)

Key

public Key(Key other)
Performs a deep copy on other.

Method Detail

deepCopy

public Key deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<Key,Key._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<Key,Key._Fields>

getRow

public byte[] getRow()

bufferForRow

public ByteBuffer bufferForRow()

setRow

public Key setRow(byte[] row)

setRow

public Key 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 Key setColFamily(byte[] colFamily)

setColFamily

public Key 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 Key setColQualifier(byte[] colQualifier)

setColQualifier

public Key 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 Key setColVisibility(byte[] colVisibility)

setColVisibility

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

getFieldValue

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

isSet

public boolean isSet(Key._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<Key,Key._Fields>

equals

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

equals

public boolean equals(Key that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public Key._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<Key,Key._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<Key,Key._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<Key,Key._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 © 2013 Apache Accumulo Project. All Rights Reserved.