/** * Increment the column from the specific family with the specified qualifier * by the specified amount. * <p> * Overrides previous calls to addColumn for this family and qualifier. * @param family family name * @param qualifier column qualifier * @param amount amount to increment by * @return the Increment object */ public Increment addColumn(byte [] family, byte [] qualifier, long amount) { if (family == null) { throw new IllegalArgumentException("family cannot be null"); } List<Cell> list = getCellList(family); KeyValue kv = createPutKeyValue(family, qualifier, ts, Bytes.toBytes(amount)); list.add(kv); return this; }
/** * Increment the column from the specific family with the specified qualifier * by the specified amount. * <p> * Overrides previous calls to addColumn for this family and qualifier. * @param family family name * @param qualifier column qualifier * @param amount amount to increment by * @return the Increment object */ public Increment addColumn(byte [] family, byte [] qualifier, long amount) { if (family == null) { throw new IllegalArgumentException("family cannot be null"); } List<Cell> list = getCellList(family); KeyValue kv = createPutKeyValue(family, qualifier, ts, Bytes.toBytes(amount)); list.add(kv); return this; }
/** * Increment the column from the specific family with the specified qualifier * by the specified amount. * <p> * Overrides previous calls to addColumn for this family and qualifier. * @param family family name * @param qualifier column qualifier * @param amount amount to increment by * @return the Increment object */ public Increment addColumn(byte [] family, byte [] qualifier, long amount) { if (family == null) { throw new IllegalArgumentException("family cannot be null"); } List<Cell> list = getCellList(family); KeyValue kv = createPutKeyValue(family, qualifier, ts, Bytes.toBytes(amount)); list.add(kv); return this; }
/** * Increment the column from the specific family with the specified qualifier * by the specified amount. * <p> * Overrides previous calls to addColumn for this family and qualifier. * @param family family name * @param qualifier column qualifier * @param amount amount to increment by * @return the Increment object */ public Increment addColumn(byte [] family, byte [] qualifier, long amount) { if (family == null) { throw new IllegalArgumentException("family cannot be null"); } if (qualifier == null) { throw new IllegalArgumentException("qualifier cannot be null"); } List<Cell> list = getCellList(family); KeyValue kv = createPutKeyValue(family, qualifier, ts, Bytes.toBytes(amount)); list.add(kv); familyMap.put(CellUtil.cloneFamily(kv), list); return this; }