Class HScanReactiveCursorImpl<F,V>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractRedisCommands
-
- io.quarkus.redis.runtime.datasource.HScanReactiveCursorImpl<F,V>
-
- All Implemented Interfaces:
ReactiveHashScanCursor<F,V>,ReactiveCursor<Map<F,V>>
public class HScanReactiveCursorImpl<F,V> extends AbstractRedisCommands implements ReactiveHashScanCursor<F,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 HScanReactiveCursorImpl(RedisCommandExecutor redis, K key, Marshaller marshaller, Type typeOfField, Type typeOfValue, List<String> extra)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcursorId()Map<F,V>decode(io.vertx.mutiny.redis.client.Response response)booleanhasNext()io.smallrye.mutiny.Uni<Map<F,V>>next()io.smallrye.mutiny.Multi<Map.Entry<F,V>>toMulti()Produces aMultiemitting each entry from hash individually.-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommands
execute, isMap
-
-
-
-
Constructor Detail
-
HScanReactiveCursorImpl
public HScanReactiveCursorImpl(RedisCommandExecutor redis, K key, Marshaller marshaller, Type typeOfField, Type typeOfValue, List<String> extra)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceReactiveCursor<F>
-
next
public io.smallrye.mutiny.Uni<Map<F,V>> next()
- Specified by:
nextin interfaceReactiveCursor<F>
-
toMulti
public io.smallrye.mutiny.Multi<Map.Entry<F,V>> toMulti()
Description copied from interface:ReactiveHashScanCursorProduces aMultiemitting each entry from hash individually. UnlikeReactiveCursor.next()which provides the entries by batch, this method returns them one by one.- Specified by:
toMultiin interfaceReactiveHashScanCursor<F,V>- Returns:
- the multi
-
cursorId
public long cursorId()
- Specified by:
cursorIdin interfaceReactiveCursor<F>
-
-