public class TPut extends Object implements org.apache.thrift.TBase<TPut,TPut._Fields>, Serializable, Cloneable, Comparable<TPut>
| Modifier and Type | Class and Description |
|---|---|
static class |
TPut._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
Map<ByteBuffer,ByteBuffer> |
attributes |
TCellVisibility |
cellVisibility |
List<TColumnValue> |
columnValues |
TDurability |
durability |
static Map<TPut._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
ByteBuffer |
row |
long |
timestamp |
| Constructor and Description |
|---|
TPut() |
TPut(ByteBuffer row,
List<TColumnValue> columnValues) |
TPut(TPut other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
Map<ByteBuffer,ByteBuffer> |
getAttributes() |
int |
getAttributesSize() |
TCellVisibility |
getCellVisibility() |
List<TColumnValue> |
getColumnValues() |
Iterator<TColumnValue> |
getColumnValuesIterator() |
int |
getColumnValuesSize() |
TDurability |
getDurability() |
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 |
isSetAttributes()
Returns true if field attributes is set (has been assigned a value) and false otherwise
|
boolean |
isSetCellVisibility()
Returns true if field cellVisibility 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 |
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
|
void |
putToAttributes(ByteBuffer key,
ByteBuffer val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
TPut |
setAttributes(Map<ByteBuffer,ByteBuffer> attributes) |
void |
setAttributesIsSet(boolean value) |
TPut |
setCellVisibility(TCellVisibility cellVisibility) |
void |
setCellVisibilityIsSet(boolean value) |
TPut |
setColumnValues(List<TColumnValue> columnValues) |
void |
setColumnValuesIsSet(boolean value) |
TPut |
setDurability(TDurability durability) |
void |
setDurabilityIsSet(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) |
String |
toString() |
void |
unsetAttributes() |
void |
unsetCellVisibility() |
void |
unsetColumnValues() |
void |
unsetDurability() |
void |
unsetRow() |
void |
unsetTimestamp() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public ByteBuffer row
public List<TColumnValue> columnValues
public long timestamp
public Map<ByteBuffer,ByteBuffer> attributes
public TDurability durability
TDurabilitypublic TCellVisibility cellVisibility
public static final Map<TPut._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TPut()
public TPut(ByteBuffer row, List<TColumnValue> columnValues)
public TPut(TPut other)
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 int getAttributesSize()
public void putToAttributes(ByteBuffer key, ByteBuffer val)
public Map<ByteBuffer,ByteBuffer> getAttributes()
public TPut setAttributes(Map<ByteBuffer,ByteBuffer> attributes)
public void unsetAttributes()
public boolean isSetAttributes()
public void setAttributesIsSet(boolean value)
public TDurability getDurability()
TDurabilitypublic TPut setDurability(TDurability durability)
TDurabilitypublic void unsetDurability()
public boolean isSetDurability()
public void setDurabilityIsSet(boolean value)
public TCellVisibility getCellVisibility()
public TPut setCellVisibility(TCellVisibility cellVisibility)
public void unsetCellVisibility()
public boolean isSetCellVisibility()
public void setCellVisibilityIsSet(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(TPut that)
public 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.TExceptionpublic 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 void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.