@Override int tryAddToSource(int currentIndex, CopyOnWriteStateTable.StateTableEntry<K, N, S> entry) { CopyOnWriteStateTable.StateTableEntry<K, N, S> filteredEntry = filterEntry(entry); if (filteredEntry != null) { return super.tryAddToSource(currentIndex, filteredEntry); } return currentIndex; }
@Override protected void reportAllElementKeyGroups() { // In this step we i) 'flatten' the linked list of entries to a second array and ii) report key-groups. int flattenIndex = 0; for (CopyOnWriteStateTable.StateTableEntry<K, N, S> entry : partitioningDestination) { while (null != entry) { flattenIndex = tryAddToSource(flattenIndex, entry); entry = entry.next; } } }
@Override protected void reportAllElementKeyGroups() { // In this step we i) 'flatten' the linked list of entries to a second array and ii) report key-groups. int flattenIndex = 0; for (CopyOnWriteStateTable.StateTableEntry<K, N, S> entry : partitioningDestination) { while (null != entry) { flattenIndex = tryAddToSource(flattenIndex, entry); entry = entry.next; } } }
@Override int tryAddToSource(int currentIndex, CopyOnWriteStateTable.StateTableEntry<K, N, S> entry) { CopyOnWriteStateTable.StateTableEntry<K, N, S> filteredEntry = filterEntry(entry); if (filteredEntry != null) { return super.tryAddToSource(currentIndex, filteredEntry); } return currentIndex; }