@InterfaceAudience.Public @InterfaceStability.Evolving public class RowMutations extends Object implements Row
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) |
boolean |
equals(Object obj) |
List<Mutation> |
getMutations() |
byte[] |
getRow() |
int |
hashCode() |
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 int compareTo(Row i)
compareTo
in interface Comparable<Row>
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.