org.apache.hadoop.hbase.thrift2.generated
Class TDelete

java.lang.Object
  extended by org.apache.hadoop.hbase.thrift2.generated.TDelete
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TDelete>, org.apache.thrift.TBase<TDelete,TDelete._Fields>

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

Used to perform Delete operations on a single row. The scope can be further narrowed down by specifying a list of columns or column families as TColumns. Specifying only a family in a TColumn will delete the whole family. If a timestamp is specified all versions with a timestamp less than or equal to this will be deleted. If no timestamp is specified the current time will be used. Specifying a family and a column qualifier in a TColumn will delete only this qualifier. If a timestamp is specified only versions equal to this timestamp will be deleted. If no timestamp is specified the most recent version will be deleted. To delete all previous versions, specify the DELETE_COLUMNS TDeleteType. The top level timestamp is only used if a complete row should be deleted (i.e. no columns are passed) and if it is specified it works the same way as if you had added a TColumn for every column family and this timestamp (i.e. all versions older than or equal in all column families will be deleted)

See Also:
Serialized Form

Nested Class Summary
static class TDelete._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 List<TColumn> columns
           
 TDeleteType deleteType
           
static Map<TDelete._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer row
           
 long timestamp
           
 boolean writeToWal
           
 
Constructor Summary
TDelete()
           
TDelete(ByteBuffer row)
           
TDelete(TDelete other)
          Performs a deep copy on other.
 
Method Summary
 void addToColumns(TColumn elem)
           
 ByteBuffer bufferForRow()
           
 void clear()
           
 int compareTo(TDelete other)
           
 TDelete deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TDelete that)
           
 TDelete._Fields fieldForId(int fieldId)
           
 List<TColumn> getColumns()
           
 Iterator<TColumn> getColumnsIterator()
           
 int getColumnsSize()
           
 TDeleteType getDeleteType()
           
 Object getFieldValue(TDelete._Fields field)
           
 byte[] getRow()
           
 long getTimestamp()
           
 int hashCode()
           
 boolean isSet(TDelete._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetColumns()
          Returns true if field columns is set (has been assigned a value) and false otherwise
 boolean isSetDeleteType()
          Returns true if field deleteType 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
 boolean isSetWriteToWal()
          Returns true if field writeToWal is set (has been assigned a value) and false otherwise
 boolean isWriteToWal()
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TDelete setColumns(List<TColumn> columns)
           
 void setColumnsIsSet(boolean value)
           
 TDelete setDeleteType(TDeleteType deleteType)
           
 void setDeleteTypeIsSet(boolean value)
           
 void setFieldValue(TDelete._Fields field, Object value)
           
 TDelete setRow(byte[] row)
           
 TDelete setRow(ByteBuffer row)
           
 void setRowIsSet(boolean value)
           
 TDelete setTimestamp(long timestamp)
           
 void setTimestampIsSet(boolean value)
           
 TDelete setWriteToWal(boolean writeToWal)
           
 void setWriteToWalIsSet(boolean value)
           
 String toString()
           
 void unsetColumns()
           
 void unsetDeleteType()
           
 void unsetRow()
           
 void unsetTimestamp()
           
 void unsetWriteToWal()
           
 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

columns

public List<TColumn> columns

timestamp

public long timestamp

deleteType

public TDeleteType deleteType
See Also:
TDeleteType

writeToWal

public boolean writeToWal

metaDataMap

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

TDelete

public TDelete()

TDelete

public TDelete(ByteBuffer row)

TDelete

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

Method Detail

deepCopy

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

clear

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

getRow

public byte[] getRow()

bufferForRow

public ByteBuffer bufferForRow()

setRow

public TDelete setRow(byte[] row)

setRow

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

getColumnsSize

public int getColumnsSize()

getColumnsIterator

public Iterator<TColumn> getColumnsIterator()

addToColumns

public void addToColumns(TColumn elem)

getColumns

public List<TColumn> getColumns()

setColumns

public TDelete setColumns(List<TColumn> columns)

unsetColumns

public void unsetColumns()

isSetColumns

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


setColumnsIsSet

public void setColumnsIsSet(boolean value)

getTimestamp

public long getTimestamp()

setTimestamp

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

getDeleteType

public TDeleteType getDeleteType()
See Also:
TDeleteType

setDeleteType

public TDelete setDeleteType(TDeleteType deleteType)
See Also:
TDeleteType

unsetDeleteType

public void unsetDeleteType()

isSetDeleteType

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


setDeleteTypeIsSet

public void setDeleteTypeIsSet(boolean value)

isWriteToWal

public boolean isWriteToWal()

setWriteToWal

public TDelete setWriteToWal(boolean writeToWal)

unsetWriteToWal

public void unsetWriteToWal()

isSetWriteToWal

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


setWriteToWalIsSet

public void setWriteToWalIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(TDelete that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public TDelete._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TDelete,TDelete._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<TDelete,TDelete._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<TDelete,TDelete._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 The Apache Software Foundation. All Rights Reserved.