K
- key typeV
- resulting value typepublic class FlatMapIteratorOperation<K,V> extends BaseTerminalOperation implements KeyTrackingTerminalOperation<K,V,Collection<V>>
Map.Entry
instances where the key is typed the same
as defined K type.KeyTrackingTerminalOperation.IntermediateCollector<C>
intermediateOperations, supplier
Constructor and Description |
---|
FlatMapIteratorOperation(Iterable<IntermediateOperation> intermediateOperations,
Supplier<Stream<CacheEntry>> supplier,
int batchSize) |
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize() |
boolean |
lostSegment(boolean stopIfLost)
This method will be invoked when the operation is known to be performing on a given set of segments
and this node no longer owns 1 or many of them.
|
List<V> |
performOperation(KeyTrackingTerminalOperation.IntermediateCollector<Collection<V>> response)
Invoked when a key aware operation is desired without rehash being enabled.
|
Collection<CacheEntry<K,Collection<V>>> |
performOperationRehashAware(KeyTrackingTerminalOperation.IntermediateCollector<Collection<CacheEntry<K,Collection<V>>>> response)
Invoked when a key and rehash aware operation is desired.
|
getIntermediateOperations, handleInjection, setSupplier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleInjection, setSupplier
public FlatMapIteratorOperation(Iterable<IntermediateOperation> intermediateOperations, Supplier<Stream<CacheEntry>> supplier, int batchSize)
public boolean lostSegment(boolean stopIfLost)
SegmentAwareOperation
lostSegment
in interface SegmentAwareOperation
stopIfLost
- argument to tell the operation that if this segment affects that it should not
perform any more operations if possible as all segments have been lost.public List<V> performOperation(KeyTrackingTerminalOperation.IntermediateCollector<Collection<V>> response)
KeyTrackingTerminalOperation
performOperation
in interface KeyTrackingTerminalOperation<K,V,Collection<V>>
response
- the collector that will be called back for any intermediate resultspublic Collection<CacheEntry<K,Collection<V>>> performOperationRehashAware(KeyTrackingTerminalOperation.IntermediateCollector<Collection<CacheEntry<K,Collection<V>>>> response)
KeyTrackingTerminalOperation
performOperationRehashAware
in interface KeyTrackingTerminalOperation<K,V,Collection<V>>
response
- the collector that will be called back for any intermediate resultspublic int getBatchSize()
Copyright © 2023 JBoss, a division of Red Hat. All rights reserved.