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); }