public enum FilterPolicyType extends java.lang.Enum<FilterPolicyType>
Enum Constant and Description |
---|
kBloomFilterPolicy
This is a user-facing policy that automatically choose between
LegacyBloom and FastLocalBloom based on context at build time,
including compatibility with format_version.
|
kRibbonFilterPolicy
This is a user-facing policy that chooses between Standard128Ribbon
and FastLocalBloom based on context at build time (LSM level and other
factors in extreme cases).
|
kUnknownFilterPolicy |
Modifier and Type | Method and Description |
---|---|
Filter |
createFilter(long handle,
double param) |
byte |
getValue()
Returns the byte value of the enumerations value
|
static FilterPolicyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FilterPolicyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FilterPolicyType kUnknownFilterPolicy
public static final FilterPolicyType kBloomFilterPolicy
public static final FilterPolicyType kRibbonFilterPolicy
public static FilterPolicyType[] values()
for (FilterPolicyType c : FilterPolicyType.values()) System.out.println(c);
public static FilterPolicyType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic Filter createFilter(long handle, double param)
public byte getValue()