Package be.bagofwords.db
Enum DatabaseCachingType
- java.lang.Object
-
- java.lang.Enum<DatabaseCachingType>
-
- be.bagofwords.db.DatabaseCachingType
-
- All Implemented Interfaces:
Serializable,Comparable<DatabaseCachingType>
public enum DatabaseCachingType extends Enum<DatabaseCachingType>
Specify whether you want the data interface cached, and if you want to add a bloom filter
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOOMCACHEDCACHED_AND_BLOOMDIRECT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanuseBloomFilter()booleanuseCache()static DatabaseCachingTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DatabaseCachingType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIRECT
public static final DatabaseCachingType DIRECT
-
CACHED
public static final DatabaseCachingType CACHED
-
CACHED_AND_BLOOM
public static final DatabaseCachingType CACHED_AND_BLOOM
-
BLOOM
public static final DatabaseCachingType BLOOM
-
-
Method Detail
-
values
public static DatabaseCachingType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DatabaseCachingType c : DatabaseCachingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseCachingType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
useCache
public boolean useCache()
-
useBloomFilter
public boolean useBloomFilter()
-
-