Constructor and Description |
---|
RowMutations()
Constructor for Writable.
|
RowMutations(byte[] row)
Create an atomic mutation for the specified row.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Delete d)
Add a
Delete operation to the list of mutations |
void |
add(Put p)
Add a
Put operation to the list of mutations |
int |
compareTo(Row i) |
List<Mutation> |
getMutations() |
byte[] |
getRow() |
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
public RowMutations()
public RowMutations(byte[] row)
row
- row keypublic void add(Put p) throws IOException
Put
operation to the list of mutationsp
- The Put
to addIOException
public void add(Delete d) throws IOException
Delete
operation to the list of mutationsd
- The Delete
to addIOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public int compareTo(Row i)
compareTo
in interface Comparable<Row>
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.