Package org.infinispan.server.iteration
Class DefaultIterationManager
java.lang.Object
org.infinispan.server.iteration.DefaultIterationManager
- All Implemented Interfaces:
IterationManager
- Direct Known Subclasses:
ExternalSourceIterationManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
protected CacheStream
<CacheEntry<Object, Object>> baseStream
(AdvancedCache cache, IterationInitializationContext ctx) Reds the next batch from the iterator associated with .void
start
(AdvancedCache cache, BitSet segments, String filterConverterFactory, List<byte[]> filterConverterParams, MediaType requestValueType, int batch, boolean metadata, DeliveryGuarantee guarantee, IterationInitializationContext ctx)
-
Constructor Details
-
DefaultIterationManager
-
-
Method Details
-
start
public IterationState start(AdvancedCache cache, BitSet segments, String filterConverterFactory, List<byte[]> filterConverterParams, MediaType requestValueType, int batch, boolean metadata, DeliveryGuarantee guarantee, IterationInitializationContext ctx) - Specified by:
start
in interfaceIterationManager
-
baseStream
protected CacheStream<CacheEntry<Object,Object>> baseStream(AdvancedCache cache, IterationInitializationContext ctx) -
next
Description copied from interface:IterationManager
Reds the next batch from the iterator associated with .Warning: This method can block.
- Specified by:
next
in interfaceIterationManager
- Parameters:
iterationId
- : The iterator identifier.batch
- : The maximum number of entries to include in the batch.- Returns:
- An
IterableIterationResult
object with the current data and metadata about the iterator.
-
close
- Specified by:
close
in interfaceIterationManager
-
addKeyValueFilterConverterFactory
- Specified by:
addKeyValueFilterConverterFactory
in interfaceIterationManager
-
removeKeyValueFilterConverterFactory
- Specified by:
removeKeyValueFilterConverterFactory
in interfaceIterationManager
-
activeIterations
public int activeIterations()- Specified by:
activeIterations
in interfaceIterationManager
-