/** * Remove added value * @param target value to remove */ private void removeAdded(long target) { neighborsAdded.rem(target); }
public void trainInternal(List<Item> items, List<ClickData> clickData) { //if new articles arrive. check if they are already known //if so remove the old entry from the list //in any case, add the new article id to the list for (Item item : items) { if (mostRecentItems.contains(item.id)) { mostRecentItems.rem(item.id); } mostRecentItems.add(0, item.id); } }
if (previous == null) { if (invalid.rem(transactionId)) { invalidArray = invalid.toLongArray(); LOG.info("Tx invalid list: removed committed tx {}", transactionId);
if (previous == null) { if (invalid.rem(transactionId)) { invalidArray = invalid.toLongArray(); LOG.info("Tx invalid list: removed committed tx {}", transactionId);