private void incrementRow(byte[] row) throws RedisForemanException
{
byte[] r = ForemanConstants.RowIdentifierPart.ROW_LOG.getId();
byte[] cf = row;
byte[] cq = row;
RedisBigTableKey rowKey = new RedisBigTableKey(r, cf, cq);
Map<RedisBigTableKey, byte[]> returned = getByKey(ForemanConstants.TableIdentifier.ROW.getId(), rowKey);
if (returned.isEmpty())
{
instance.hset(ForemanConstants.TableIdentifier.ROW.getId(), rowKey.toRedisField(), "1".getBytes());
}
else
{
int instanceOfRow = Integer.parseInt(new String(returned.entrySet().iterator().next().getValue()));
instanceOfRow++;
instance.hset(ForemanConstants.TableIdentifier.ROW.getId(), rowKey.toRedisField(), (instanceOfRow + "").getBytes());
}
}