Enum Class BloomFilter.Version

Object
Enum<BloomFilter.Version>
org.apache.spark.util.sketch.BloomFilter.Version
All Implemented Interfaces:
Serializable, Comparable<BloomFilter.Version>, Constable
Enclosing class:
BloomFilter

public static enum BloomFilter.Version extends Enum<BloomFilter.Version>
  • Enum Constant Details

    • V1

      public static final BloomFilter.Version V1
      BloomFilter binary format version 1. All values written in big-endian order:
      • Version number, always 1 (32 bit)
      • Number of hash functions (32 bit)
      • Total number of words of the underlying bit array (32 bit)
      • The words/longs (numWords * 64 bit)
    • V2

      public static final BloomFilter.Version V2
      BloomFilter binary format version 2. Fixes the int32 truncation issue with V1 indexes, but by changing the bit pattern, it will become incompatible with V1 serializations. All values written in big-endian order:
      • Version number, always 2 (32 bit)
      • Number of hash functions (32 bit)
      • Integer seed to initialize hash functions (32 bit)
      • Total number of words of the underlying bit array (32 bit)
      • The words/longs (numWords * 64 bit)
  • Method Details

    • values

      public static BloomFilter.Version[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BloomFilter.Version valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null