public class DuplicateRemovalIntermediateResultListener<E> extends IntermediateDelegationResultListener<E>
Modifier and Type | Field and Description |
---|---|
protected BloomFilter |
filter
The bloom filter.
|
customIntermediateResultListener, customResultListener, delegate, future, undone
Constructor and Description |
---|
DuplicateRemovalIntermediateResultListener(IIntermediateResultListener<E> delegate)
Create a new listener.
|
DuplicateRemovalIntermediateResultListener(IIntermediateResultListener<E> delegate,
boolean undone)
Create a new listener.
|
DuplicateRemovalIntermediateResultListener(IntermediateFuture<E> future)
Create a new listener.
|
DuplicateRemovalIntermediateResultListener(IntermediateFuture<E> future,
boolean undone)
Create a new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
customIntermediateResultAvailable(E result)
Check results before sending them further.
|
byte[] |
objectToByteArray(java.lang.Object value)
Convert a value to a byte array.
|
void |
setBloomFilter(BloomFilter filter)
Set the bloom filter used to find duplicates.
|
commandAvailable, customResultAvailable, exceptionOccurred, exceptionOccurredIfUndone, finished, finishedIfUndone, handleException, intermediateResultAvailable, intermediateResultAvailableIfUndone, resultAvailable, resultAvailableIfUndone
protected BloomFilter filter
public DuplicateRemovalIntermediateResultListener(IIntermediateResultListener<E> delegate)
delegate
- The delegation target.public DuplicateRemovalIntermediateResultListener(IIntermediateResultListener<E> delegate, boolean undone)
delegate
- The delegation target.undone
- use undone methods.public DuplicateRemovalIntermediateResultListener(IntermediateFuture<E> future)
future
- The delegation target.public DuplicateRemovalIntermediateResultListener(IntermediateFuture<E> future, boolean undone)
future
- The delegation target.undone
- use undone methods.public void setBloomFilter(BloomFilter filter)
filter
- The filter.public void customIntermediateResultAvailable(E result)
customIntermediateResultAvailable
in class IntermediateDelegationResultListener<E>
result
- The result.public byte[] objectToByteArray(java.lang.Object value)
value
- The value.