Class BfReserveArgs

java.lang.Object
io.quarkus.redis.datasource.bloom.BfReserveArgs
All Implemented Interfaces:
RedisCommandExtraArguments

public class BfReserveArgs extends Object implements RedisCommandExtraArguments
  • Constructor Details

    • BfReserveArgs

      public BfReserveArgs()
  • Method Details

    • 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<Object> toArgs()
      Specified by:
      toArgs in interface RedisCommandExtraArguments
      Returns:
      the list of arguments.