Record Class BloomFilterInfoFunction.BloomFilterInfo

java.lang.Object
java.lang.Record
org.infinispan.server.resp.commands.bloom.BloomFilterInfoFunction.BloomFilterInfo
Enclosing class:
BloomFilterInfoFunction

@ProtoTypeId(6138) public static record BloomFilterInfoFunction.BloomFilterInfo(long capacity, long size, int filters, long items, int expansion) extends Record
Result of BF.INFO command.
Since:
16.2
  • Constructor Summary

    Constructors
    Constructor
    Description
    BloomFilterInfo(long capacity, long size, int filters, long items, int expansion)
    Creates an instance of a BloomFilterInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the capacity record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the expansion record component.
    int
    Returns the value of the filters record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the items record component.
    long
    Returns the value of the size record component.
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BloomFilterInfo

      public BloomFilterInfo(long capacity, long size, int filters, long items, int expansion)
      Creates an instance of a BloomFilterInfo record class.
      Parameters:
      capacity - the value for the capacity record component
      size - the value for the size record component
      filters - the value for the filters record component
      items - the value for the items record component
      expansion - the value for the expansion record component
  • Method Details

    • toMap

      public Map<String,Long> toMap(BloomFilterInfoFunction.InfoType requestedType)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • capacity

      public long capacity()
      Returns the value of the capacity record component.
      Returns:
      the value of the capacity record component
    • size

      public long size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • filters

      public int filters()
      Returns the value of the filters record component.
      Returns:
      the value of the filters record component
    • items

      public long items()
      Returns the value of the items record component.
      Returns:
      the value of the items record component
    • expansion

      public int expansion()
      Returns the value of the expansion record component.
      Returns:
      the value of the expansion record component