org.apache.hadoop.hbase.thrift.generated
Class BatchMutation

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

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

A BatchMutation object is used to apply a number of Mutations to a single row.

See Also:
Serialized Form

Nested Class Summary
static class BatchMutation._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<BatchMutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 List<Mutation> mutations
           
 byte[] row
           
 
Constructor Summary
BatchMutation()
           
BatchMutation(BatchMutation other)
          Performs a deep copy on other.
BatchMutation(byte[] row, List<Mutation> mutations)
           
 
Method Summary
 void addToMutations(Mutation elem)
           
 BatchMutation clone()
          Deprecated. 
 int compareTo(BatchMutation other)
           
 BatchMutation deepCopy()
           
 boolean equals(BatchMutation that)
           
 boolean equals(Object that)
           
 Object getFieldValue(BatchMutation._Fields field)
           
 Object getFieldValue(int fieldId)
           
 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 asigned a value) and false otherwise
 boolean isSet(int fieldID)
           
 boolean isSetMutations()
          Returns true if field mutations is set (has been asigned a value) and false otherwise
 boolean isSetRow()
          Returns true if field row is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(BatchMutation._Fields field, Object value)
           
 void setFieldValue(int fieldID, Object value)
           
 BatchMutation setMutations(List<Mutation> mutations)
           
 void setMutationsIsSet(boolean value)
           
 BatchMutation setRow(byte[] row)
           
 void setRowIsSet(boolean value)
           
 String toString()
           
 void unsetMutations()
           
 void unsetRow()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

row

public byte[] row

mutations

public List<Mutation> mutations

metaDataMap

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

BatchMutation

public BatchMutation()

BatchMutation

public BatchMutation(byte[] row,
                     List<Mutation> mutations)

BatchMutation

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

Method Detail

deepCopy

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

clone

@Deprecated
public BatchMutation clone()
Deprecated. 

Overrides:
clone in class Object

getRow

public byte[] getRow()

setRow

public BatchMutation setRow(byte[] row)

unsetRow

public void unsetRow()

isSetRow

public boolean isSetRow()
Returns true if field row is set (has been asigned a value) and false otherwise


setRowIsSet

public void setRowIsSet(boolean value)

getMutationsSize

public int getMutationsSize()

getMutationsIterator

public Iterator<Mutation> getMutationsIterator()

addToMutations

public void addToMutations(Mutation elem)

getMutations

public List<Mutation> getMutations()

setMutations

public BatchMutation setMutations(List<Mutation> mutations)

unsetMutations

public void unsetMutations()

isSetMutations

public boolean isSetMutations()
Returns true if field mutations is set (has been asigned a value) and false otherwise


setMutationsIsSet

public void setMutationsIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

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

getFieldValue

public Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<BatchMutation._Fields>

isSet

public boolean isSet(BatchMutation._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<BatchMutation._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<BatchMutation._Fields>

equals

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

equals

public boolean equals(BatchMutation that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<BatchMutation._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<BatchMutation._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 © 2011 The Apache Software Foundation. All Rights Reserved.