org.cloudgraph.rocksdb.client.RocksDBIncrement 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.util.List;
import java.util.NavigableMap;
import org.cloudgraph.core.client.Cell;
import org.cloudgraph.core.client.Increment;
import org.plasma.sdo.DataType;
public class RocksDBIncrement extends RocksDBRowMutation implements Increment {
public RocksDBIncrement(byte[] rowKey) {
super(rowKey, MutationType.INCREMENT);
}
@Override
public void setAttribute(String name, byte[] value) {
throw new IllegalStateException("not implemented");
}
@Override
public byte[] getAttribute(String name) {
throw new IllegalStateException("not implemented");
}
@Override
public NavigableMap> getFamilyCellMap() {
// TODO Auto-generated method stub
return null;
}
@Override
public void addColumn(byte[] fam, byte[] qual, long value) {
super.addColumn(fam, qual, DataType.Long, org.cloudgraph.common.Bytes.toBytes(value));
}
// public void addColumn(byte[] fam, byte[] qual, DataType valueDataType, long
// value) {
// this.addColumn(fam, qual, valueDataType, Bytes.toBytes(value));
// }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy