public static void addMutation( Mutation rm, String columnFamilyName, String superColumnName, long columnName, String value, long timestamp) { CellName cname = superColumnName == null ? CellNames.simpleDense(getBytes(columnName)) : CellNames.compositeDense(ByteBufferUtil.bytes(superColumnName), getBytes(columnName)); rm.add(columnFamilyName, cname, ByteBufferUtil.bytes(value), timestamp); }
public static CellName cellname(ByteBuffer... bbs) { if (bbs.length == 1) return CellNames.simpleDense(bbs[0]); else return CellNames.compositeDense(bbs); }
public static RangeTombstone tombstone( String start, String finish, long timestamp, int localtime) { Composite startName = CellNames.simpleDense(ByteBufferUtil.bytes(start)); Composite endName = CellNames.simpleDense(ByteBufferUtil.bytes(finish)); return new RangeTombstone(startName, endName, timestamp, localtime); }
public static CellName cellname(long l) { return CellNames.simpleDense(ByteBufferUtil.bytes(l)); }
public static CellName cellname(int i) { return CellNames.simpleDense(ByteBufferUtil.bytes(i)); }