|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.thrift2.generated.TDelete
public class TDelete
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)
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 | |
---|---|
Map<ByteBuffer,ByteBuffer> |
attributes
|
List<TColumn> |
columns
|
TDeleteType |
deleteType
|
TDurability |
durability
|
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)
|
Map<ByteBuffer,ByteBuffer> |
getAttributes()
|
int |
getAttributesSize()
|
List<TColumn> |
getColumns()
|
Iterator<TColumn> |
getColumnsIterator()
|
int |
getColumnsSize()
|
TDeleteType |
getDeleteType()
|
TDurability |
getDurability()
|
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 |
isSetAttributes()
Returns true if field attributes 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 |
isSetDurability()
Returns true if field durability 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 |
putToAttributes(ByteBuffer key,
ByteBuffer val)
|
void |
read(org.apache.thrift.protocol.TProtocol iprot)
|
TDelete |
setAttributes(Map<ByteBuffer,ByteBuffer> attributes)
|
void |
setAttributesIsSet(boolean value)
|
TDelete |
setColumns(List<TColumn> columns)
|
void |
setColumnsIsSet(boolean value)
|
TDelete |
setDeleteType(TDeleteType deleteType)
|
void |
setDeleteTypeIsSet(boolean value)
|
TDelete |
setDurability(TDurability durability)
|
void |
setDurabilityIsSet(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 |
unsetAttributes()
|
void |
unsetColumns()
|
void |
unsetDeleteType()
|
void |
unsetDurability()
|
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 |
---|
public ByteBuffer row
public List<TColumn> columns
public long timestamp
public TDeleteType deleteType
TDeleteType
public boolean writeToWal
public Map<ByteBuffer,ByteBuffer> attributes
public TDurability durability
TDurability
public static final Map<TDelete._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail |
---|
public TDelete()
public TDelete(ByteBuffer row)
public TDelete(TDelete other)
Method Detail |
---|
public TDelete deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TDelete,TDelete._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TDelete,TDelete._Fields>
public byte[] getRow()
public ByteBuffer bufferForRow()
public TDelete setRow(byte[] row)
public TDelete setRow(ByteBuffer row)
public void unsetRow()
public boolean isSetRow()
public void setRowIsSet(boolean value)
public int getColumnsSize()
public Iterator<TColumn> getColumnsIterator()
public void addToColumns(TColumn elem)
public List<TColumn> getColumns()
public TDelete setColumns(List<TColumn> columns)
public void unsetColumns()
public boolean isSetColumns()
public void setColumnsIsSet(boolean value)
public long getTimestamp()
public TDelete setTimestamp(long timestamp)
public void unsetTimestamp()
public boolean isSetTimestamp()
public void setTimestampIsSet(boolean value)
public TDeleteType getDeleteType()
TDeleteType
public TDelete setDeleteType(TDeleteType deleteType)
TDeleteType
public void unsetDeleteType()
public boolean isSetDeleteType()
public void setDeleteTypeIsSet(boolean value)
public boolean isWriteToWal()
public TDelete setWriteToWal(boolean writeToWal)
public void unsetWriteToWal()
public boolean isSetWriteToWal()
public void setWriteToWalIsSet(boolean value)
public int getAttributesSize()
public void putToAttributes(ByteBuffer key, ByteBuffer val)
public Map<ByteBuffer,ByteBuffer> getAttributes()
public TDelete setAttributes(Map<ByteBuffer,ByteBuffer> attributes)
public void unsetAttributes()
public boolean isSetAttributes()
public void setAttributesIsSet(boolean value)
public TDurability getDurability()
TDurability
public TDelete setDurability(TDurability durability)
TDurability
public void unsetDurability()
public boolean isSetDurability()
public void setDurabilityIsSet(boolean value)
public void setFieldValue(TDelete._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TDelete,TDelete._Fields>
public Object getFieldValue(TDelete._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TDelete,TDelete._Fields>
public boolean isSet(TDelete._Fields field)
isSet
in interface org.apache.thrift.TBase<TDelete,TDelete._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(TDelete that)
public int hashCode()
hashCode
in class Object
public int compareTo(TDelete other)
compareTo
in interface Comparable<TDelete>
public TDelete._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TDelete,TDelete._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TDelete,TDelete._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<TDelete,TDelete._Fields>
org.apache.thrift.TException
public String toString()
toString
in class Object
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |