org.cloudgraph.rocksdb.client.RocksDBRowMutations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudgraph-rocksdb Show documentation
Show all versions of cloudgraph-rocksdb 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.rocksdb.client;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.cloudgraph.core.client.Delete;
import org.cloudgraph.core.client.Mutation;
import org.cloudgraph.core.client.Put;
import org.cloudgraph.core.client.RowMutations;
public class RocksDBRowMutations implements RowMutations {
byte[] row;
private List mutations = new ArrayList<>();
public RocksDBRowMutations(byte[] row) {
this.row = row;
}
public void add(Delete d) throws IOException {
mutations.add(RocksDBDel.class.cast(d));
}
public void add(Put p) throws IOException {
mutations.add(RocksDBPut.class.cast(p));
}
// public void add(Increment i) throws IOException {
// mutations.add(HBaseIncrement.class.cast(i).get());
// }
public List getMutations() {
return mutations;
}
public byte[] getRow() {
return row;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy