org.apache.blur.thrift.generated
Class RecordMutation

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

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

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

See Also:
Serialized Form

Nested Class Summary
static class RecordMutation._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<RecordMutation._Fields,FieldMetaData> metaDataMap
           
 Record record
          The Record to mutate.
 RecordMutationType recordMutationType
          Define how to mutate the given Record.
 
Constructor Summary
RecordMutation()
           
RecordMutation(RecordMutation other)
          Performs a deep copy on other.
RecordMutation(RecordMutationType recordMutationType, Record record)
           
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(RecordMutation other)
           
 RecordMutation deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(RecordMutation that)
           
 RecordMutation._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 Object getFieldValue(RecordMutation._Fields field)
          Get a field's value by field variable.
 Record getRecord()
          The Record to mutate.
 RecordMutationType getRecordMutationType()
          Define how to mutate the given Record.
 int hashCode()
           
 boolean isSet(RecordMutation._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetRecord()
          Returns true if field record is set (has been assigned a value) and false otherwise
 boolean isSetRecordMutationType()
          Returns true if field recordMutationType is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 void setFieldValue(RecordMutation._Fields field, Object value)
          Set a field's value by field variable.
 RecordMutation setRecord(Record record)
          The Record to mutate.
 void setRecordIsSet(boolean value)
           
 RecordMutation setRecordMutationType(RecordMutationType recordMutationType)
          Define how to mutate the given Record.
 void setRecordMutationTypeIsSet(boolean value)
           
 String toString()
           
 void unsetRecord()
           
 void unsetRecordMutationType()
           
 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

recordMutationType

public RecordMutationType recordMutationType
Define how to mutate the given Record.

See Also:
RecordMutationType

record

public Record record
The Record to mutate.


metaDataMap

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

RecordMutation

public RecordMutation()

RecordMutation

public RecordMutation(RecordMutationType recordMutationType,
                      Record record)

RecordMutation

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

Method Detail

deepCopy

public RecordMutation deepCopy()
Specified by:
deepCopy in interface TBase<RecordMutation,RecordMutation._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<RecordMutation,RecordMutation._Fields>

getRecordMutationType

public RecordMutationType getRecordMutationType()
Define how to mutate the given Record.

See Also:
RecordMutationType

setRecordMutationType

public RecordMutation setRecordMutationType(RecordMutationType recordMutationType)
Define how to mutate the given Record.

See Also:
RecordMutationType

unsetRecordMutationType

public void unsetRecordMutationType()

isSetRecordMutationType

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


setRecordMutationTypeIsSet

public void setRecordMutationTypeIsSet(boolean value)

getRecord

public Record getRecord()
The Record to mutate.


setRecord

public RecordMutation setRecord(Record record)
The Record to mutate.


unsetRecord

public void unsetRecord()

isSetRecord

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


setRecordIsSet

public void setRecordIsSet(boolean value)

setFieldValue

public void setFieldValue(RecordMutation._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<RecordMutation,RecordMutation._Fields>

getFieldValue

public Object getFieldValue(RecordMutation._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<RecordMutation,RecordMutation._Fields>

isSet

public boolean isSet(RecordMutation._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<RecordMutation,RecordMutation._Fields>

equals

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

equals

public boolean equals(RecordMutation that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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

Specified by:
fieldForId in interface TBase<RecordMutation,RecordMutation._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<RecordMutation,RecordMutation._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<RecordMutation,RecordMutation._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.