Class ZScanReactiveCursorImpl<V>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractRedisCommands
-
- io.quarkus.redis.runtime.datasource.ZScanReactiveCursorImpl<V>
-
- All Implemented Interfaces:
ReactiveCursor<List<ScoredValue<V>>>
,ReactiveZScanCursor<V>
public class ZScanReactiveCursorImpl<V> extends AbstractRedisCommands implements ReactiveZScanCursor<V>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommands
marshaller, redis
-
Fields inherited from interface io.quarkus.redis.datasource.ReactiveCursor
INITIAL_CURSOR_ID
-
-
Constructor Summary
Constructors Constructor Description ZScanReactiveCursorImpl(RedisCommandExecutor redis, K key, Marshaller marshaller, Class<V> typeOfValue, List<String> extra)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
cursorId()
boolean
hasNext()
io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
next()
io.smallrye.mutiny.Multi<ScoredValue<V>>
toMulti()
Produces aMulti
emitting each member from the sorted set individually.-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommands
execute
-
-
-
-
Constructor Detail
-
ZScanReactiveCursorImpl
public ZScanReactiveCursorImpl(RedisCommandExecutor redis, K key, Marshaller marshaller, Class<V> typeOfValue, List<String> extra)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceReactiveCursor<V>
-
next
public io.smallrye.mutiny.Uni<List<ScoredValue<V>>> next()
- Specified by:
next
in interfaceReactiveCursor<V>
-
cursorId
public long cursorId()
- Specified by:
cursorId
in interfaceReactiveCursor<V>
-
toMulti
public io.smallrye.mutiny.Multi<ScoredValue<V>> toMulti()
Description copied from interface:ReactiveZScanCursor
Produces aMulti
emitting each member from the sorted set individually. UnlikeReactiveCursor.next()
which provides the members by batch, this method returns them one by one.- Specified by:
toMulti
in interfaceReactiveZScanCursor<V>
- Returns:
- the multi
-
-