org.apache.blur.thrift.generated
Class RowMutation

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

public class RowMutation
extends Object
implements TBase<RowMutation,RowMutation._Fields>, Serializable, Cloneable

The RowMutation defines how the given Row is to be mutated.

See Also:
Serialized Form

Nested Class Summary
static class RowMutation._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<RowMutation._Fields,FieldMetaData> metaDataMap
           
 List<RecordMutation> recordMutations
          The RecordMutations if any for this Row.
 String rowId
          The row id that the row mutation is to act upon.
 RowMutationType rowMutationType
          The RowMutationType to define how to mutate the given Row.
 String table
          The table that the row mutation is to act upon.
 
Constructor Summary
RowMutation()
           
RowMutation(RowMutation other)
          Performs a deep copy on other.
RowMutation(String table, String rowId, RowMutationType rowMutationType, List<RecordMutation> recordMutations)
           
 
Method Summary
 void addToRecordMutations(RecordMutation elem)
           
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(RowMutation other)
           
 RowMutation deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(RowMutation that)
           
 RowMutation._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 Object getFieldValue(RowMutation._Fields field)
          Get a field's value by field variable.
 List<RecordMutation> getRecordMutations()
          The RecordMutations if any for this Row.
 Iterator<RecordMutation> getRecordMutationsIterator()
           
 int getRecordMutationsSize()
           
 String getRowId()
          The row id that the row mutation is to act upon.
 RowMutationType getRowMutationType()
          The RowMutationType to define how to mutate the given Row.
 String getTable()
          The table that the row mutation is to act upon.
 int hashCode()
           
 boolean isSet(RowMutation._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetRecordMutations()
          Returns true if field recordMutations is set (has been assigned a value) and false otherwise
 boolean isSetRowId()
          Returns true if field rowId is set (has been assigned a value) and false otherwise
 boolean isSetRowMutationType()
          Returns true if field rowMutationType is set (has been assigned a value) and false otherwise
 boolean isSetTable()
          Returns true if field table is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 void setFieldValue(RowMutation._Fields field, Object value)
          Set a field's value by field variable.
 RowMutation setRecordMutations(List<RecordMutation> recordMutations)
          The RecordMutations if any for this Row.
 void setRecordMutationsIsSet(boolean value)
           
 RowMutation setRowId(String rowId)
          The row id that the row mutation is to act upon.
 void setRowIdIsSet(boolean value)
           
 RowMutation setRowMutationType(RowMutationType rowMutationType)
          The RowMutationType to define how to mutate the given Row.
 void setRowMutationTypeIsSet(boolean value)
           
 RowMutation setTable(String table)
          The table that the row mutation is to act upon.
 void setTableIsSet(boolean value)
           
 String toString()
           
 void unsetRecordMutations()
           
 void unsetRowId()
           
 void unsetRowMutationType()
           
 void unsetTable()
           
 void validate()
           
 void write(TProtocol oprot)
          Writes the objects out to the protocol
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

table

public String table
The table that the row mutation is to act upon.


rowId

public String rowId
The row id that the row mutation is to act upon.


rowMutationType

public RowMutationType rowMutationType
The RowMutationType to define how to mutate the given Row.

See Also:
RowMutationType

recordMutations

public List<RecordMutation> recordMutations
The RecordMutations if any for this Row.


metaDataMap

public static final Map<RowMutation._Fields,FieldMetaData> metaDataMap
Constructor Detail

RowMutation

public RowMutation()

RowMutation

public RowMutation(String table,
                   String rowId,
                   RowMutationType rowMutationType,
                   List<RecordMutation> recordMutations)

RowMutation

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

Method Detail

deepCopy

public RowMutation deepCopy()
Specified by:
deepCopy in interface TBase<RowMutation,RowMutation._Fields>

clear

public void clear()
Description copied from interface: TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface TBase<RowMutation,RowMutation._Fields>

getTable

public String getTable()
The table that the row mutation is to act upon.


setTable

public RowMutation setTable(String table)
The table that the row mutation is to act upon.


unsetTable

public void unsetTable()

isSetTable

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


setTableIsSet

public void setTableIsSet(boolean value)

getRowId

public String getRowId()
The row id that the row mutation is to act upon.


setRowId

public RowMutation setRowId(String rowId)
The row id that the row mutation is to act upon.


unsetRowId

public void unsetRowId()

isSetRowId

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


setRowIdIsSet

public void setRowIdIsSet(boolean value)

getRowMutationType

public RowMutationType getRowMutationType()
The RowMutationType to define how to mutate the given Row.

See Also:
RowMutationType

setRowMutationType

public RowMutation setRowMutationType(RowMutationType rowMutationType)
The RowMutationType to define how to mutate the given Row.

See Also:
RowMutationType

unsetRowMutationType

public void unsetRowMutationType()

isSetRowMutationType

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


setRowMutationTypeIsSet

public void setRowMutationTypeIsSet(boolean value)

getRecordMutationsSize

public int getRecordMutationsSize()

getRecordMutationsIterator

public Iterator<RecordMutation> getRecordMutationsIterator()

addToRecordMutations

public void addToRecordMutations(RecordMutation elem)

getRecordMutations

public List<RecordMutation> getRecordMutations()
The RecordMutations if any for this Row.


setRecordMutations

public RowMutation setRecordMutations(List<RecordMutation> recordMutations)
The RecordMutations if any for this Row.


unsetRecordMutations

public void unsetRecordMutations()

isSetRecordMutations

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


setRecordMutationsIsSet

public void setRecordMutationsIsSet(boolean value)

setFieldValue

public void setFieldValue(RowMutation._Fields field,
                          Object value)
Description copied from interface: TBase
Set a field's value by field variable. Primitive types must be "boxed" in the appropriate object wrapper type.

Specified by:
setFieldValue in interface TBase<RowMutation,RowMutation._Fields>

getFieldValue

public Object getFieldValue(RowMutation._Fields field)
Description copied from interface: TBase
Get a field's value by field variable. Primitive types will be wrapped in the appropriate "boxed" types.

Specified by:
getFieldValue in interface TBase<RowMutation,RowMutation._Fields>

isSet

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

Specified by:
isSet in interface TBase<RowMutation,RowMutation._Fields>

equals

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

equals

public boolean equals(RowMutation that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public RowMutation._Fields fieldForId(int fieldId)
Description copied from interface: TBase
Get the F instance that corresponds to fieldId.

Specified by:
fieldForId in interface TBase<RowMutation,RowMutation._Fields>

read

public void read(TProtocol iprot)
          throws TException
Description copied from interface: TBase
Reads the TObject from the given input protocol.

Specified by:
read in interface TBase<RowMutation,RowMutation._Fields>
Parameters:
iprot - Input protocol
Throws:
TException

write

public void write(TProtocol oprot)
           throws TException
Description copied from interface: TBase
Writes the objects out to the protocol

Specified by:
write in interface TBase<RowMutation,RowMutation._Fields>
Parameters:
oprot - Output protocol
Throws:
TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws TException
Throws:
TException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.