Class BfReserveArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.bloom.BfReserveArgs
-
- All Implemented Interfaces:
RedisCommandExtraArguments
public class BfReserveArgs extends Object implements RedisCommandExtraArguments
-
-
Constructor Summary
Constructors Constructor Description BfReserveArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BfReserveArgs
expansion(int expansion)
Set the expansion factory.BfReserveArgs
nonScaling()
Prevents the filter from creating additional sub-filters if initial capacity is reached.List<String>
toArgs()
-
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.RedisCommandExtraArguments
toArgs
-
-
-
-
Method Detail
-
nonScaling
public BfReserveArgs nonScaling()
Prevents the filter from creating additional sub-filters if initial capacity is reached. Non-scaling filters requires slightly less memory than their scaling counterparts. The filter returns an error when capacity is reached.- Returns:
- the current
BfReserveArgs
-
expansion
public BfReserveArgs expansion(int expansion)
Set the expansion factory. When capacity is reached, an additional sub-filter is created. The size of the new sub-filter is the size of the last sub-filter multiplied by expansion. If the number of elements to be stored in the filter is unknown, we recommend that you use an expansion of 2 or more to reduce the number of sub-filters. Otherwise, we recommend that you use an expansion of 1 to reduce memory consumption. The default expansion value is 2.- Parameters:
expansion
- the expansion factor, must be positive- Returns:
- the current
BfReserveArgs
-
toArgs
public List<String> toArgs()
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments, encoded as a list of String.
-
-