@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2016-05-25") public class BatchMutation extends Object implements org.apache.thrift.TBase<BatchMutation,BatchMutation._Fields>, Serializable, Cloneable, Comparable<BatchMutation>
Modifier and Type | Class and Description |
---|---|
static class |
BatchMutation._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<BatchMutation._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
List<Mutation> |
mutations |
ByteBuffer |
row |
Constructor and Description |
---|
BatchMutation() |
BatchMutation(BatchMutation other)
Performs a deep copy on other.
|
BatchMutation(ByteBuffer row,
List<Mutation> mutations) |
Modifier and Type | Method and Description |
---|---|
void |
addToMutations(Mutation elem) |
ByteBuffer |
bufferForRow() |
void |
clear() |
int |
compareTo(BatchMutation other) |
BatchMutation |
deepCopy() |
boolean |
equals(BatchMutation that) |
boolean |
equals(Object that) |
BatchMutation._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(BatchMutation._Fields field) |
List<Mutation> |
getMutations() |
Iterator<Mutation> |
getMutationsIterator() |
int |
getMutationsSize() |
byte[] |
getRow() |
int |
hashCode() |
boolean |
isSet(BatchMutation._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetMutations()
Returns true if field mutations 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
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(BatchMutation._Fields field,
Object value) |
BatchMutation |
setMutations(List<Mutation> mutations) |
void |
setMutationsIsSet(boolean value) |
BatchMutation |
setRow(byte[] row) |
BatchMutation |
setRow(ByteBuffer row) |
void |
setRowIsSet(boolean value) |
String |
toString() |
void |
unsetMutations() |
void |
unsetRow() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public ByteBuffer row
public static final Map<BatchMutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public BatchMutation()
public BatchMutation(ByteBuffer row, List<Mutation> mutations)
public BatchMutation(BatchMutation other)
public BatchMutation deepCopy()
deepCopy
in interface org.apache.thrift.TBase<BatchMutation,BatchMutation._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<BatchMutation,BatchMutation._Fields>
public byte[] getRow()
public ByteBuffer bufferForRow()
public BatchMutation setRow(byte[] row)
public BatchMutation setRow(ByteBuffer row)
public void unsetRow()
public boolean isSetRow()
public void setRowIsSet(boolean value)
public int getMutationsSize()
public void addToMutations(Mutation elem)
public BatchMutation setMutations(List<Mutation> mutations)
public void unsetMutations()
public boolean isSetMutations()
public void setMutationsIsSet(boolean value)
public void setFieldValue(BatchMutation._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<BatchMutation,BatchMutation._Fields>
public Object getFieldValue(BatchMutation._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<BatchMutation,BatchMutation._Fields>
public boolean isSet(BatchMutation._Fields field)
isSet
in interface org.apache.thrift.TBase<BatchMutation,BatchMutation._Fields>
public boolean equals(BatchMutation that)
public int compareTo(BatchMutation other)
compareTo
in interface Comparable<BatchMutation>
public BatchMutation._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<BatchMutation,BatchMutation._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<BatchMutation,BatchMutation._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<BatchMutation,BatchMutation._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2007–2019 Cloudera. All rights reserved.