org.hibernate.search.annotations
Annotation Type CacheFromIndex
@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
public @interface CacheFromIndex
While extracting values from the index might be faster than extracting
them from a Database, it might still involve costly IO operations.
Depending on the type of performed queries, it's often needed to extract
at least the entity type. Caches which aren't needed won't be used, but used
caches might take a significant amount of memory.
- Author:
- Sanne Grinovero (C) 2011 Red Hat Inc.
value
public abstract FieldCacheType[] value
- Returns:
- Returns a
FieldCache
enum type indicating what kind of caching we should use for index stored metadata. Defaults to FieldCache.CLASS
.
- Default:
- org.hibernate.search.annotations.FieldCacheType.CLASS
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved