Class BlockingTransactionalBloomCommandsImpl<K,V>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
-
- io.quarkus.redis.runtime.datasource.BlockingTransactionalBloomCommandsImpl<K,V>
-
- All Implemented Interfaces:
TransactionalBloomCommands<K,V>,TransactionalRedisCommands
public class BlockingTransactionalBloomCommandsImpl<K,V> extends AbstractTransactionalRedisCommandGroup implements TransactionalBloomCommands<K,V>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
ds, timeout
-
-
Constructor Summary
Constructors Constructor Description BlockingTransactionalBloomCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalBloomCommands<K,V> reactive, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbfadd(K key, V value)Execute the command BF.ADD.voidbfexists(K key, V value)Execute the command BF.EXISTS.voidbfinsert(K key, BfInsertArgs args, V... values)Execute the command BF.INSERT.voidbfmadd(K key, V... values)Execute the command BF.MADD.voidbfmexists(K key, V... values)Execute the command BF.MEXISTS.voidbfreserve(K key, double errorRate, long capacity)Execute 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.AbstractTransactionalRedisCommandGroup
getDataSource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.TransactionalRedisCommands
getDataSource
-
-
-
-
Constructor Detail
-
BlockingTransactionalBloomCommandsImpl
public BlockingTransactionalBloomCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalBloomCommands<K,V> reactive, Duration timeout)
-
-
Method Detail
-
bfadd
public void bfadd(K key, V value)
Description copied from interface:TransactionalBloomCommandsExecute 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 interfaceTransactionalBloomCommands<K,V>- Parameters:
key- the keyvalue- the value, must not benull
-
bfexists
public void bfexists(K key, V value)
Description copied from interface:TransactionalBloomCommandsExecute the command BF.EXISTS. Summary: Determines whether an item may exist in the Bloom Filter or not. Group: bloom- Specified by:
bfexistsin interfaceTransactionalBloomCommands<K,V>- Parameters:
key- the keyvalue- the value, must not benull
-
bfmadd
public void bfmadd(K key, V... values)
Description copied from interface:TransactionalBloomCommandsExecute 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 interfaceTransactionalBloomCommands<K,V>- Parameters:
key- the keyvalues- the values, must not benull, must not containnull, must not be empty.
-
bfmexists
public void bfmexists(K key, V... values)
Description copied from interface:TransactionalBloomCommandsExecute the command BF.MEXISTS. Summary: Determines if one or more items may exist in the filter or not. Group: bloom- Specified by:
bfmexistsin interfaceTransactionalBloomCommands<K,V>- Parameters:
key- the keyvalues- the values, must not benull, must not containnull, must not be empty.
-
bfreserve
public void bfreserve(K key, double errorRate, long capacity)
Description copied from interface:TransactionalBloomCommandsExecute 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 interfaceTransactionalBloomCommands<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
public void bfreserve(K key, double errorRate, long capacity, BfReserveArgs args)
Description copied from interface:TransactionalBloomCommandsExecute 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 interfaceTransactionalBloomCommands<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
public void bfinsert(K key, BfInsertArgs args, V... values)
Description copied from interface:TransactionalBloomCommandsExecute 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 interfaceTransactionalBloomCommands<K,V>- Parameters:
key- the keyargs- the creation parametersvalues- the value to add, must not containnull, must not benull, must not be empty
-
-