@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class Operation extends org.apache.kudu.client.KuduRpc<OperationResponse>
Modifier and Type | Method and Description |
---|---|
PartialRow |
getRow()
Get the underlying row to modify.
|
byte[] |
partitionKey()
Returns the partition key this RPC is for, or
null if the RPC is
not tablet specific. |
void |
setRow(PartialRow row)
Set the underlying row.
|
public byte[] partitionKey()
org.apache.kudu.client.KuduRpc
null
if the RPC is
not tablet specific.
DO NOT MODIFY THE CONTENTS OF THE RETURNED ARRAY.
partitionKey
in class org.apache.kudu.client.KuduRpc<OperationResponse>
public PartialRow getRow()
public void setRow(PartialRow row)
KuduTable table = client.openTable("my-table");
PartialRow row = table.getSchema().newPartialRow();
...
Operation op = table.newInsert();
op.setRow(row);
row
- the row to set