/** * Delete the key value. * * @param kv the kv */ private static void deleteKeyValue(final KeyValue kv) { try { kv.remove(); kv.flush(); } catch (Exception e) { logger.error("Error deleting old key value: " + e.getMessage()); } }
/** * Save the key value. * * @param kv the kv */ private static void saveKeyValue(final KeyValue kv) { try { kv.merge(); kv.flush(); } catch (Exception e) { logger.error("Error saving key value: " + e.getMessage(), e); } }