![JAR search and dependency download from the Maven repository](/logo.png)
org.cloudgraph.hbase.client.HBaseRowMutations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudgraph-hbase Show documentation
Show all versions of cloudgraph-hbase Show documentation
CloudGraph(tm) is a suite of Service Data Object (SDO) 2.1 services designed for relational and big-table style "cloud" databases, such as HBase and others.
The newest version!
package org.cloudgraph.hbase.client;
import java.io.IOException;
import java.util.List;
import org.cloudgraph.core.client.Delete;
import org.cloudgraph.core.client.Put;
import org.cloudgraph.core.client.RowMutations;
public class HBaseRowMutations implements RowMutations {
private org.apache.hadoop.hbase.client.RowMutations mutations;
public HBaseRowMutations(org.apache.hadoop.hbase.client.RowMutations mutations) {
super();
this.mutations = mutations;
}
public HBaseRowMutations(byte[] row) {
this(new org.apache.hadoop.hbase.client.RowMutations(row));
}
public org.apache.hadoop.hbase.client.RowMutations get() {
return mutations;
}
public void add(Delete d) throws IOException {
mutations.add(HBaseDelete.class.cast(d).get());
}
public void add(Put p) throws IOException {
mutations.add(HBasePut.class.cast(p).get());
}
// public void add(Increment i) throws IOException {
// mutations.add(HBaseIncrement.class.cast(i).get());
// }
public List getMutations() {
return mutations.getMutations();
}
public byte[] getRow() {
return mutations.getRow();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy