Package io.lettuce.core.output
Class StringMatchResultOutput<K,V>
- java.lang.Object
-
- io.lettuce.core.output.CommandOutput<K,V,StringMatchResult>
-
- io.lettuce.core.output.StringMatchResultOutput<K,V>
-
public class StringMatchResultOutput<K,V> extends CommandOutput<K,V,StringMatchResult>
Command output forSTRALGO
returningStringMatchResult
.- Since:
- 6.0
- Author:
- dengliming
-
-
Field Summary
-
Fields inherited from class io.lettuce.core.output.CommandOutput
codec, error, output
-
-
Constructor Summary
Constructors Constructor Description StringMatchResultOutput(RedisCodec<K,V> codec, boolean withIdx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
complete(int depth)
Mark the command output complete.void
set(long integer)
Update the command output with a 64-bit signed integer.void
set(ByteBuffer bytes)
Update the command output with a sequence of bytes, ornull
.-
Methods inherited from class io.lettuce.core.output.CommandOutput
decodeAscii, get, getError, hasError, multi, multiArray, multiMap, multiPush, multiSet, set, set, setBigNumber, setError, setError, setSingle, toString
-
-
-
-
Constructor Detail
-
StringMatchResultOutput
public StringMatchResultOutput(RedisCodec<K,V> codec, boolean withIdx)
-
-
Method Detail
-
set
public void set(ByteBuffer bytes)
Description copied from class:CommandOutput
Update the command output with a sequence of bytes, ornull
. ConcreteCommandOutput
implementations must override this method to decodebulk
/bytes response values.- Overrides:
set
in classCommandOutput<K,V,StringMatchResult>
- Parameters:
bytes
- The command output, or null.
-
set
public void set(long integer)
Description copied from class:CommandOutput
Update the command output with a 64-bit signed integer. ConcreteCommandOutput
implementations must override this method to decodenumber
(integer) response values.- Overrides:
set
in classCommandOutput<K,V,StringMatchResult>
- Parameters:
integer
- The command output.
-
complete
public void complete(int depth)
Description copied from class:CommandOutput
Mark the command output complete.- Overrides:
complete
in classCommandOutput<K,V,StringMatchResult>
- Parameters:
depth
- Remaining depth of output queue.
-
-