mirror of
https://github.com/apache/nifi.git
synced 2025-02-06 01:58:32 +00:00
NIFI-13763 Fixed HashSet Filtering for DeduplicateRecord (#9277)
Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
58184683df
commit
e125d8cdbb
@ -391,7 +391,7 @@ public class DeduplicateRecord extends AbstractProcessor {
|
||||
private FilterWrapper getFilter(ProcessContext context) {
|
||||
if (useInMemoryStrategy) {
|
||||
boolean useHashSet = context.getProperty(FILTER_TYPE).getValue()
|
||||
.equals(context.getProperty(HASH_SET_VALUE.getValue()).getValue());
|
||||
.equals(HASH_SET_VALUE.getValue());
|
||||
final int filterCapacity = context.getProperty(FILTER_CAPACITY_HINT).asInteger();
|
||||
return useHashSet
|
||||
? new HashSetFilterWrapper(new HashSet<>(filterCapacity))
|
||||
|
Loading…
x
Reference in New Issue
Block a user