use of com.google.cloud.bigtable.data.v2.models.RowMutation in project java-bigtable-hbase by googleapis.
the class HBaseRequestAdapter method adapt.
/**
* adapt.
*
* @param mutations a {@link org.apache.hadoop.hbase.client.RowMutations} object.
* @return a {@link RowMutation} object.
*/
public RowMutation adapt(RowMutations mutations) {
RowMutation rowMutation = newRowMutationModel(mutations.getRow());
adapt(mutations, rowMutation);
return rowMutation;
}
use of com.google.cloud.bigtable.data.v2.models.RowMutation in project java-bigtable-hbase by googleapis.
the class HBaseRequestAdapter method adapt.
/**
* adapt.
*
* @param delete a {@link org.apache.hadoop.hbase.client.Delete} object.
* @return a {@link RowMutation} object.
*/
public RowMutation adapt(Delete delete) {
RowMutation rowMutation = newRowMutationModel(delete.getRow());
adapt(delete, rowMutation);
return rowMutation;
}
use of com.google.cloud.bigtable.data.v2.models.RowMutation in project java-bigtable-hbase by googleapis.
the class HBaseRequestAdapter method adaptEntry.
/**
* adapt.
*
* @param delete a {@link Delete} object.
* @return a {@link RowMutationEntry} object.
*/
public RowMutationEntry adaptEntry(Delete delete) {
RowMutationEntry rowMutation = buildRowMutationEntry(delete.getRow());
adapt(delete, rowMutation);
return rowMutation;
}
use of com.google.cloud.bigtable.data.v2.models.RowMutation in project java-bigtable-hbase by googleapis.
the class HBaseRequestAdapter method adaptEntry.
/**
* adaptEntry.
*
* @param mutations a {@link org.apache.hadoop.hbase.client.RowMutations} object.
* @return a {@link RowMutationEntry} object.
*/
public RowMutationEntry adaptEntry(RowMutations mutations) {
RowMutationEntry rowMutation = buildRowMutationEntry(mutations.getRow());
adapt(mutations, rowMutation);
return rowMutation;
}
use of com.google.cloud.bigtable.data.v2.models.RowMutation in project java-bigtable-hbase by googleapis.
the class TestPutAdapter method adapt.
private MutateRowRequest adapt(Put put) {
RowMutation rowMutation = RowMutation.create(TABLE_ID, ByteString.copyFrom(put.getRow()));
adapter.adapt(put, rowMutation);
return rowMutation.toProto(REQUEST_CONTEXT);
}
Aggregations