Package glide.api.models.commands.scan
Class BaseScanOptions.BaseScanOptionsBuilder<C extends BaseScanOptions,B extends BaseScanOptions.BaseScanOptionsBuilder<C,B>>
- java.lang.Object
-
- glide.api.models.commands.scan.BaseScanOptions.BaseScanOptionsBuilder<C,B>
-
- Direct Known Subclasses:
HScanOptions.HScanOptionsBuilder,ScanOptions.ScanOptionsBuilder,SScanOptions.SScanOptionsBuilder,ZScanOptions.ZScanOptionsBuilder
- Enclosing class:
- BaseScanOptions
public abstract static class BaseScanOptions.BaseScanOptionsBuilder<C extends BaseScanOptions,B extends BaseScanOptions.BaseScanOptionsBuilder<C,B>> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BaseScanOptionsBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Cbuild()Bcount(java.lang.Long count)COUNTis a just a hint for the command for how many elements to fetch from the set, hash, or list.BmatchPattern(java.lang.String matchPattern)The match filter is applied to the result of the command and will only include strings that match the pattern specified.BmatchPatternBinary(GlideString matchPatternBinary)The match filter is applied to the result of the command and will only include strings that match the pattern specified.protected abstract Bself()java.lang.StringtoString()
-
-
-
Method Detail
-
matchPattern
public B matchPattern(java.lang.String matchPattern)
The match filter is applied to the result of the command and will only include strings that match the pattern specified. If the set, hash, or list is large enough for scan commands to return only a subset of the set, hash, or list, then there could be a case where the result is empty although there are items that match the pattern specified. This is due to the defaultCOUNTbeing10which indicates that it will only fetch and match10items from the list.- Returns:
this.
-
matchPatternBinary
public B matchPatternBinary(GlideString matchPatternBinary)
The match filter is applied to the result of the command and will only include strings that match the pattern specified. If the set, hash, or list is large enough for scan commands to return only a subset of the set, hash, or list, then there could be a case where the result is empty although there are items that match the pattern specified. This is due to the defaultCOUNTbeing10which indicates that it will only fetch and match10items from the list.- Returns:
this.
-
count
public B count(java.lang.Long count)
COUNTis a just a hint for the command for how many elements to fetch from the set, hash, or list.COUNTcould be ignored until the set, hash, or list is large enough for theSCANcommands to represent the results as compact single-allocation packed encoding.- Returns:
this.
-
self
protected abstract B self()
-
build
public abstract C build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-