java.lang.Object
io.lettuce.core.StrAlgoArgs
- All Implemented Interfaces:
CompositeArgument
public class StrAlgoArgs extends Object implements CompositeArgument
Argument list builder for the Redis STRALGO command. Static import the methods
from
StrAlgoArgs.Builder and call the methods: keys(…) .
StrAlgoArgs is a mutable object and instances should be used only once to avoid shared mutable state.
- Since:
- 6.0
- Author:
- dengliming
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStrAlgoArgs.BuilderBuilder entry points forStrAlgoArgs.static classStrAlgoArgs.By -
Constructor Summary
Constructors Constructor Description StrAlgoArgs() -
Method Summary
Modifier and Type Method Description <K, V> voidbuild(CommandArgs<K,V> args)Build command arguments and contribute arguments toCommandArgs.StrAlgoArgsby(StrAlgoArgs.By by, String... keys)StrAlgoArgscharset(Charset charset)booleanisWithIdx()StrAlgoArgsjustLen()Request just the length of the match for results.StrAlgoArgsminMatchLen(int minMatchLen)restrict the list of matches to the ones of a given minimal length.StrAlgoArgswithIdx()Request match position in each strings for results.StrAlgoArgswithMatchLen()Request match len for results.
-
Constructor Details
-
StrAlgoArgs
public StrAlgoArgs()
-
-
Method Details
-
minMatchLen
restrict the list of matches to the ones of a given minimal length.- Returns:
thisStrAlgoArgs.
-
justLen
Request just the length of the match for results.- Returns:
thisStrAlgoArgs.
-
withMatchLen
Request match len for results.- Returns:
thisStrAlgoArgs.
-
withIdx
Request match position in each strings for results.- Returns:
thisStrAlgoArgs.
-
by
-
isWithIdx
public boolean isWithIdx() -
charset
-
build
Description copied from interface:CompositeArgumentBuild command arguments and contribute arguments toCommandArgs.Implementing classes are required to implement this method. Depending on the command nature and configured arguments, this method may contribute arguments but is not required to add arguments if none are specified.
- Specified by:
buildin interfaceCompositeArgument- Type Parameters:
K- Key type.V- Value type.- Parameters:
args- the command arguments, must not benull.
-