/** * Create a STATS link count edge value initialized with a single identifier. * * @param realmedIdentifier * The identifier to add to the STATS link count edge value. * @return A Value or null if there was an error. */ public static Value getStatsLinkValue(final String realmedIdentifier) { try { final ExtendedHyperLogLogPlus hll = new ExtendedHyperLogLogPlus(); hll.offer(realmedIdentifier); return (new Value(hll.getBytes())); } catch (IOException e) { log.warn("Failed to add " + realmedIdentifier + " to HyperLogLog", e); return (null); } }