org.apache.accumulo.proxy.thrift
Class ColumnUpdate

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

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

See Also:
Serialized Form

Nested Class Summary
static class ColumnUpdate._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
           
 boolean deleteCell
           
static Map<ColumnUpdate._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 long timestamp
           
 ByteBuffer value
           
 
Constructor Summary
ColumnUpdate()
           
ColumnUpdate(ByteBuffer colFamily, ByteBuffer colQualifier)
           
ColumnUpdate(ColumnUpdate other)
          Performs a deep copy on other.
 
Method Summary
 ByteBuffer bufferForColFamily()
           
 ByteBuffer bufferForColQualifier()
           
 ByteBuffer bufferForColVisibility()
           
 ByteBuffer bufferForValue()
           
 void clear()
           
 int compareTo(ColumnUpdate other)
           
 ColumnUpdate deepCopy()
           
 boolean equals(ColumnUpdate that)
           
 boolean equals(Object that)
           
 ColumnUpdate._Fields fieldForId(int fieldId)
           
 byte[] getColFamily()
           
 byte[] getColQualifier()
           
 byte[] getColVisibility()
           
 Object getFieldValue(ColumnUpdate._Fields field)
           
 long getTimestamp()
           
 byte[] getValue()
           
 int hashCode()
           
 boolean isDeleteCell()
           
 boolean isSet(ColumnUpdate._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 isSetDeleteCell()
          Returns true if field deleteCell 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
 boolean isSetValue()
          Returns true if field value is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 ColumnUpdate setColFamily(byte[] colFamily)
           
 ColumnUpdate setColFamily(ByteBuffer colFamily)
           
 void setColFamilyIsSet(boolean value)
           
 ColumnUpdate setColQualifier(byte[] colQualifier)
           
 ColumnUpdate setColQualifier(ByteBuffer colQualifier)
           
 void setColQualifierIsSet(boolean value)
           
 ColumnUpdate setColVisibility(byte[] colVisibility)
           
 ColumnUpdate setColVisibility(ByteBuffer colVisibility)
           
 void setColVisibilityIsSet(boolean value)
           
 ColumnUpdate setDeleteCell(boolean deleteCell)
           
 void setDeleteCellIsSet(boolean value)
           
 void setFieldValue(ColumnUpdate._Fields field, Object value)
           
 ColumnUpdate setTimestamp(long timestamp)
           
 void setTimestampIsSet(boolean value)
           
 ColumnUpdate setValue(byte[] value)
           
 ColumnUpdate setValue(ByteBuffer value)
           
 void setValueIsSet(boolean value)
           
 String toString()
           
 void unsetColFamily()
           
 void unsetColQualifier()
           
 void unsetColVisibility()
           
 void unsetDeleteCell()
           
 void unsetTimestamp()
           
 void unsetValue()
           
 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

colFamily

public ByteBuffer colFamily

colQualifier

public ByteBuffer colQualifier

colVisibility

public ByteBuffer colVisibility

timestamp

public long timestamp

value

public ByteBuffer value

deleteCell

public boolean deleteCell

metaDataMap

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

ColumnUpdate

public ColumnUpdate()

ColumnUpdate

public ColumnUpdate(ByteBuffer colFamily,
                    ByteBuffer colQualifier)

ColumnUpdate

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

Method Detail

deepCopy

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

clear

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

getColFamily

public byte[] getColFamily()

bufferForColFamily

public ByteBuffer bufferForColFamily()

setColFamily

public ColumnUpdate setColFamily(byte[] colFamily)

setColFamily

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

setColQualifier

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

setColVisibility

public ColumnUpdate 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 ColumnUpdate 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)

getValue

public byte[] getValue()

bufferForValue

public ByteBuffer bufferForValue()

setValue

public ColumnUpdate setValue(byte[] value)

setValue

public ColumnUpdate setValue(ByteBuffer value)

unsetValue

public void unsetValue()

isSetValue

public boolean isSetValue()
Returns true if field value is set (has been assigned a value) and false otherwise


setValueIsSet

public void setValueIsSet(boolean value)

isDeleteCell

public boolean isDeleteCell()

setDeleteCell

public ColumnUpdate setDeleteCell(boolean deleteCell)

unsetDeleteCell

public void unsetDeleteCell()

isSetDeleteCell

public boolean isSetDeleteCell()
Returns true if field deleteCell is set (has been assigned a value) and false otherwise


setDeleteCellIsSet

public void setDeleteCellIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(ColumnUpdate that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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