org.apache.blur.mapreduce.lib
Class BlurMutate

java.lang.Object
  extended by org.apache.blur.mapreduce.lib.BlurMutate
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class BlurMutate
extends Object
implements org.apache.hadoop.io.Writable

BlurMutate carries the Records bound for the Row for indexing. If this mutate represents a delete of the Row the recordId of the BlurRecord is ignored.


Nested Class Summary
static class BlurMutate.MUTATE_TYPE
          The BlurMutate.MUTATE_TYPE controls the mutating of the Row.
 
Constructor Summary
BlurMutate()
           
BlurMutate(BlurMutate.MUTATE_TYPE type, BlurRecord record)
           
BlurMutate(BlurMutate.MUTATE_TYPE type, String rowId)
           
BlurMutate(BlurMutate.MUTATE_TYPE type, String rowId, String recordId)
           
BlurMutate(BlurMutate.MUTATE_TYPE type, String rowId, String recordId, String family)
           
 
Method Summary
 BlurMutate addColumn(BlurColumn column)
           
 BlurMutate addColumn(String name, String value)
           
 boolean equals(Object obj)
           
 BlurMutate.MUTATE_TYPE getMutateType()
           
 BlurRecord getRecord()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 BlurMutate setFamily(String family)
           
 BlurMutate setMutateType(BlurMutate.MUTATE_TYPE mutateType)
           
 void setRecord(BlurRecord record)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlurMutate

public BlurMutate()

BlurMutate

public BlurMutate(BlurMutate.MUTATE_TYPE type,
                  BlurRecord record)

BlurMutate

public BlurMutate(BlurMutate.MUTATE_TYPE type,
                  String rowId)

BlurMutate

public BlurMutate(BlurMutate.MUTATE_TYPE type,
                  String rowId,
                  String recordId)

BlurMutate

public BlurMutate(BlurMutate.MUTATE_TYPE type,
                  String rowId,
                  String recordId,
                  String family)
Method Detail

addColumn

public BlurMutate addColumn(BlurColumn column)

addColumn

public BlurMutate addColumn(String name,
                            String value)

getRecord

public BlurRecord getRecord()

setRecord

public void setRecord(BlurRecord record)

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

getMutateType

public BlurMutate.MUTATE_TYPE getMutateType()

setMutateType

public BlurMutate setMutateType(BlurMutate.MUTATE_TYPE mutateType)

toString

public String toString()
Overrides:
toString in class Object

setFamily

public BlurMutate setFamily(String family)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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