|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.thrift2.generated.TPut
public class TPut
Used to perform Put operations for a single row. Add column values to this object and they'll be added. You can provide a default timestamp if the column values don't have one. If you don't provide a default timestamp the current time is inserted. You can also specify if this Put should be written to the write-ahead Log (WAL) or not. It defaults to true.
| Nested Class Summary | |
|---|---|
static class |
TPut._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
| Field Summary | |
|---|---|
List<TColumnValue> |
columnValues
|
static Map<TPut._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap
|
ByteBuffer |
row
|
long |
timestamp
|
boolean |
writeToWal
|
| Constructor Summary | |
|---|---|
TPut()
|
|
TPut(ByteBuffer row,
List<TColumnValue> columnValues)
|
|
TPut(TPut other)
Performs a deep copy on other. |
|
| Method Summary | |
|---|---|
void |
addToColumnValues(TColumnValue elem)
|
ByteBuffer |
bufferForRow()
|
void |
clear()
|
int |
compareTo(TPut other)
|
TPut |
deepCopy()
|
boolean |
equals(Object that)
|
boolean |
equals(TPut that)
|
TPut._Fields |
fieldForId(int fieldId)
|
List<TColumnValue> |
getColumnValues()
|
Iterator<TColumnValue> |
getColumnValuesIterator()
|
int |
getColumnValuesSize()
|
Object |
getFieldValue(TPut._Fields field)
|
byte[] |
getRow()
|
long |
getTimestamp()
|
int |
hashCode()
|
boolean |
isSet(TPut._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetColumnValues()
Returns true if field columnValues 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)
|
TPut |
setColumnValues(List<TColumnValue> columnValues)
|
void |
setColumnValuesIsSet(boolean value)
|
void |
setFieldValue(TPut._Fields field,
Object value)
|
TPut |
setRow(byte[] row)
|
TPut |
setRow(ByteBuffer row)
|
void |
setRowIsSet(boolean value)
|
TPut |
setTimestamp(long timestamp)
|
void |
setTimestampIsSet(boolean value)
|
TPut |
setWriteToWal(boolean writeToWal)
|
void |
setWriteToWalIsSet(boolean value)
|
String |
toString()
|
void |
unsetColumnValues()
|
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<TColumnValue> columnValues
public long timestamp
public boolean writeToWal
public static final Map<TPut._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
| Constructor Detail |
|---|
public TPut()
public TPut(ByteBuffer row,
List<TColumnValue> columnValues)
public TPut(TPut other)
| Method Detail |
|---|
public TPut deepCopy()
deepCopy in interface org.apache.thrift.TBase<TPut,TPut._Fields>public void clear()
clear in interface org.apache.thrift.TBase<TPut,TPut._Fields>public byte[] getRow()
public ByteBuffer bufferForRow()
public TPut setRow(byte[] row)
public TPut setRow(ByteBuffer row)
public void unsetRow()
public boolean isSetRow()
public void setRowIsSet(boolean value)
public int getColumnValuesSize()
public Iterator<TColumnValue> getColumnValuesIterator()
public void addToColumnValues(TColumnValue elem)
public List<TColumnValue> getColumnValues()
public TPut setColumnValues(List<TColumnValue> columnValues)
public void unsetColumnValues()
public boolean isSetColumnValues()
public void setColumnValuesIsSet(boolean value)
public long getTimestamp()
public TPut setTimestamp(long timestamp)
public void unsetTimestamp()
public boolean isSetTimestamp()
public void setTimestampIsSet(boolean value)
public boolean isWriteToWal()
public TPut setWriteToWal(boolean writeToWal)
public void unsetWriteToWal()
public boolean isSetWriteToWal()
public void setWriteToWalIsSet(boolean value)
public void setFieldValue(TPut._Fields field,
Object value)
setFieldValue in interface org.apache.thrift.TBase<TPut,TPut._Fields>public Object getFieldValue(TPut._Fields field)
getFieldValue in interface org.apache.thrift.TBase<TPut,TPut._Fields>public boolean isSet(TPut._Fields field)
isSet in interface org.apache.thrift.TBase<TPut,TPut._Fields>public boolean equals(Object that)
equals in class Objectpublic boolean equals(TPut that)
public int hashCode()
hashCode in class Objectpublic int compareTo(TPut other)
compareTo in interface Comparable<TPut>public TPut._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<TPut,TPut._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<TPut,TPut._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<TPut,TPut._Fields>org.apache.thrift.TExceptionpublic 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 | |||||||||