org.apache.hadoop.hbase.thrift2.generated
Class TRowMutations

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

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

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

See Also:
Serialized Form

Nested Class Summary
static class TRowMutations._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<TRowMutations._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 List<TMutation> mutations
           
 ByteBuffer row
           
 
Constructor Summary
TRowMutations()
           
TRowMutations(ByteBuffer row, List<TMutation> mutations)
           
TRowMutations(TRowMutations other)
          Performs a deep copy on other.
 
Method Summary
 void addToMutations(TMutation elem)
           
 ByteBuffer bufferForRow()
           
 void clear()
           
 int compareTo(TRowMutations other)
           
 TRowMutations deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TRowMutations that)
           
 TRowMutations._Fields fieldForId(int fieldId)
           
 Object getFieldValue(TRowMutations._Fields field)
           
 List<TMutation> getMutations()
           
 Iterator<TMutation> getMutationsIterator()
           
 int getMutationsSize()
           
 byte[] getRow()
           
 int hashCode()
           
 boolean isSet(TRowMutations._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(TRowMutations._Fields field, Object value)
           
 TRowMutations setMutations(List<TMutation> mutations)
           
 void setMutationsIsSet(boolean value)
           
 TRowMutations setRow(byte[] row)
           
 TRowMutations setRow(ByteBuffer 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

row

public ByteBuffer row

mutations

public List<TMutation> mutations

metaDataMap

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

TRowMutations

public TRowMutations()

TRowMutations

public TRowMutations(ByteBuffer row,
                     List<TMutation> mutations)

TRowMutations

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

Method Detail

deepCopy

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

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<TRowMutations,TRowMutations._Fields>

getRow

public byte[] getRow()

bufferForRow

public ByteBuffer bufferForRow()

setRow

public TRowMutations setRow(byte[] row)

setRow

public TRowMutations setRow(ByteBuffer row)

unsetRow

public void unsetRow()

isSetRow

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


setRowIsSet

public void setRowIsSet(boolean value)

getMutationsSize

public int getMutationsSize()

getMutationsIterator

public Iterator<TMutation> getMutationsIterator()

addToMutations

public void addToMutations(TMutation elem)

getMutations

public List<TMutation> getMutations()

setMutations

public TRowMutations setMutations(List<TMutation> mutations)

unsetMutations

public void unsetMutations()

isSetMutations

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


setMutationsIsSet

public void setMutationsIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

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

equals

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

equals

public boolean equals(TRowMutations that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public TRowMutations._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TRowMutations,TRowMutations._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TRowMutations,TRowMutations._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<TRowMutations,TRowMutations._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 © 2007–2015 The Apache Software Foundation. All rights reserved.