Class BlockingBloomCommandsImpl<K,V>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
io.quarkus.redis.runtime.datasource.BlockingBloomCommandsImpl<K,V>
- All Implemented Interfaces:
BloomCommands<K,,V> RedisCommands
public class BlockingBloomCommandsImpl<K,V>
extends AbstractRedisCommandGroup
implements BloomCommands<K,V>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
ds, timeout -
Constructor Summary
ConstructorsConstructorDescriptionBlockingBloomCommandsImpl(RedisDataSource ds, ReactiveBloomCommands<K, V> reactive, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionbooleanExecute the command BF.ADD.booleanExecute the command BF.EXISTS.bfinsert(K key, BfInsertArgs args, V... values) Execute the command BF.INSERT.Execute the command BF.MADD.Execute the command BF.MEXISTS.voidExecute the command BF.RESERVE.voidbfreserve(K key, double errorRate, long capacity, BfReserveArgs args) Execute the command BF.RESERVE.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
getDataSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisCommands
getDataSource
-
Constructor Details
-
BlockingBloomCommandsImpl
public BlockingBloomCommandsImpl(RedisDataSource ds, ReactiveBloomCommands<K, V> reactive, Duration timeout)
-
-
Method Details
-
bfadd
Description copied from interface:BloomCommandsExecute the command BF.ADD. Summary: Adds the specified element to the specified Bloom filter. Group: bloomIf the bloom filter does not exist, it creates a new one.
- Specified by:
bfaddin interfaceBloomCommands<K,V> - Parameters:
key- the keyvalue- the value, must not benull- Returns:
trueif the value did not exist in the filter,falseotherwise.
-
bfexists
Description copied from interface:BloomCommandsExecute the command BF.EXISTS. Summary: Determines whether an item may exist in the Bloom Filter or not. Group: bloom- Specified by:
bfexistsin interfaceBloomCommands<K,V> - Parameters:
key- the keyvalue- the value, must not benull- Returns:
trueif the value may exist in the filter,falsemeans it does not exist in the filter.
-
bfmadd
Description copied from interface:BloomCommandsExecute the command BF.MADD. Summary: Adds one or more items to the Bloom Filter and creates the filter if it does not exist yet. This command operates identically to BF.ADD except that it allows multiple inputs and returns multiple values. Group: bloom- Specified by:
bfmaddin interfaceBloomCommands<K,V> - Parameters:
key- the keyvalues- the values, must not benull, must not containnull, must not be empty.- Returns:
- a list of booleans.
trueif the corresponding value did not exist in the filter,falseotherwise.
-
bfmexists
Description copied from interface:BloomCommandsExecute the command BF.MEXISTS. Summary: Determines if one or more items may exist in the filter or not. Group: bloom- Specified by:
bfmexistsin interfaceBloomCommands<K,V> - Parameters:
key- the keyvalues- the values, must not benull, must not containnull, must not be empty.- Returns:
- a list of booleans.
trueif the corresponding value may exist in the filter,falsedoes not exist in the filter.
-
bfreserve
Description copied from interface:BloomCommandsExecute the command BF.RESERVE. Summary: Creates an empty Bloom Filter with a single sub-filter for the initial capacity requested and with an upper bounderror_rate. Group: bloom- Specified by:
bfreservein interfaceBloomCommands<K,V> - Parameters:
key- the keyerrorRate- The desired probability for false positives. The rate is a decimal value between 0 and 1.capacity- The number of entries intended to be added to the filter.
-
bfreserve
Description copied from interface:BloomCommandsExecute the command BF.RESERVE. Summary: Creates an empty Bloom Filter with a single sub-filter for the initial capacity requested and with an upper bounderror_rate. Group: bloom- Specified by:
bfreservein interfaceBloomCommands<K,V> - Parameters:
key- the keyerrorRate- The desired probability for false positives. The rate is a decimal value between 0 and 1.capacity- The number of entries intended to be added to the filter.args- the extra parameters
-
bfinsert
Description copied from interface:BloomCommandsExecute the command BF.INSERT. Summary: BF.INSERT is a sugarcoated combination ofBF.RESERVEandBF.ADD. It creates a new filter if the key does not exist using the relevant arguments. Next, allITEMSare inserted. Group: bloom- Specified by:
bfinsertin interfaceBloomCommands<K,V> - Parameters:
key- the keyargs- the creation parametersvalues- the value to add, must not containnull, must not benull, must not be empty- Returns:
- a list of booleans.
trueif the corresponding value may exist in the filter,falsedoes not exist in the filter.
-