|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.generated.RowMutation
public class RowMutation
The RowMutation defines how the given Row is to be mutated.
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 |
---|
public String table
public String rowId
public RowMutationType rowMutationType
RowMutationType
public List<RecordMutation> recordMutations
public static final Map<RowMutation._Fields,FieldMetaData> metaDataMap
Constructor Detail |
---|
public RowMutation()
public RowMutation(String table, String rowId, RowMutationType rowMutationType, List<RecordMutation> recordMutations)
public RowMutation(RowMutation other)
Method Detail |
---|
public RowMutation deepCopy()
deepCopy
in interface TBase<RowMutation,RowMutation._Fields>
public void clear()
TBase
clear
in interface TBase<RowMutation,RowMutation._Fields>
public String getTable()
public RowMutation setTable(String table)
public void unsetTable()
public boolean isSetTable()
public void setTableIsSet(boolean value)
public String getRowId()
public RowMutation setRowId(String rowId)
public void unsetRowId()
public boolean isSetRowId()
public void setRowIdIsSet(boolean value)
public RowMutationType getRowMutationType()
RowMutationType
public RowMutation setRowMutationType(RowMutationType rowMutationType)
RowMutationType
public void unsetRowMutationType()
public boolean isSetRowMutationType()
public void setRowMutationTypeIsSet(boolean value)
public int getRecordMutationsSize()
public Iterator<RecordMutation> getRecordMutationsIterator()
public void addToRecordMutations(RecordMutation elem)
public List<RecordMutation> getRecordMutations()
public RowMutation setRecordMutations(List<RecordMutation> recordMutations)
public void unsetRecordMutations()
public boolean isSetRecordMutations()
public void setRecordMutationsIsSet(boolean value)
public void setFieldValue(RowMutation._Fields field, Object value)
TBase
setFieldValue
in interface TBase<RowMutation,RowMutation._Fields>
public Object getFieldValue(RowMutation._Fields field)
TBase
getFieldValue
in interface TBase<RowMutation,RowMutation._Fields>
public boolean isSet(RowMutation._Fields field)
isSet
in interface TBase<RowMutation,RowMutation._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(RowMutation that)
public int hashCode()
hashCode
in class Object
public int compareTo(RowMutation other)
compareTo
in interface Comparable<RowMutation>
public RowMutation._Fields fieldForId(int fieldId)
TBase
fieldForId
in interface TBase<RowMutation,RowMutation._Fields>
public void read(TProtocol iprot) throws TException
TBase
read
in interface TBase<RowMutation,RowMutation._Fields>
iprot
- Input protocol
TException
public void write(TProtocol oprot) throws TException
TBase
write
in interface TBase<RowMutation,RowMutation._Fields>
oprot
- Output protocol
TException
public String toString()
toString
in class Object
public void validate() throws TException
TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |