@Override public Result run(HTableInterface table) throws IOException { return table.increment(increment); } });
@Override public Result increment(Increment increment) throws IOException { return table.increment(increment); }
@Override public Result increment(Increment increment) throws IOException { return table.increment(increment); }
public Result increment(Increment inc) throws IOException { Result result = table.increment(inc); return result; }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { if (allowNonTransactional) { return hTable.increment(increment); } else { throw new UnsupportedOperationException("Operation is not supported transactionally"); } }
@Override public Result increment(Increment increment) throws IOException { checkState(); return table.increment(increment); }
@Override public TResult increment(ByteBuffer table, TIncrement increment) throws TIOError, TException { HTableInterface htable = getTable(table.array()); try { return resultFromHBase(htable.increment(incrementFromThrift(increment))); } catch (IOException e) { throw getTIOError(e); } finally { closeTable(htable); } }
/** * Execute an increment on an entity field. This field must be a type that * supports increments. Returns the new increment value of type long. * * @param key * The key to map to an Increment * @param fieldName * The name of the field we are incrementing * @param amount * The amount to increment by * @param entityMapper * The EntityMapper to map the key and increment amount to an * Increment. * @return The new field amount after the increment. */ public <E> long increment(PartitionKey key, String fieldName, long amount, EntityMapper<E> entityMapper) { Increment increment = entityMapper.mapToIncrement(key, fieldName, amount); HTableInterface table = pool.getTable(tableName); Result result; try { result = table.increment(increment); } catch (IOException e) { throw new DatasetIOException("Error incrementing field.", e); } return entityMapper.mapFromIncrementResult(result, fieldName); }
/** * Execute an increment on an entity field. This field must be a type that * supports increments. Returns the new increment value of type long. * * @param key * The key to map to an Increment * @param fieldName * The name of the field we are incrementing * @param amount * The amount to increment by * @param entityMapper * The EntityMapper to map the key and increment amount to an * Increment. * @return The new field amount after the increment. */ public <E> long increment(PartitionKey key, String fieldName, long amount, EntityMapper<E> entityMapper) { Increment increment = entityMapper.mapToIncrement(key, fieldName, amount); HTableInterface table = pool.getTable(tableName); Result result; try { result = table.increment(increment); } catch (IOException e) { throw new DatasetIOException("Error incrementing field.", e); } return entityMapper.mapFromIncrementResult(result, fieldName); }