Class FloatFieldLoadingStrategy
java.lang.Object
org.hibernate.search.query.fieldcache.FloatFieldLoadingStrategy
- All Implemented Interfaces:
FieldLoadingStrategy
We need a collection of similar implementations, one per each FieldCache.DEFAULT.accessmethod
to be able to deal with arrays of primitive values without autoboxing all of them.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollect(int relativeDocId) The collector wants to pick a specific element from the cache.voidloadNewCacheValues(IndexReader reader) A new IndexReader is opened - implementations usually need this to load the next array of cached data.
-
Constructor Details
-
FloatFieldLoadingStrategy
-
-
Method Details
-
loadNewCacheValues
Description copied from interface:FieldLoadingStrategyA new IndexReader is opened - implementations usually need this to load the next array of cached data.- Specified by:
loadNewCacheValuesin interfaceFieldLoadingStrategy- Parameters:
reader- theIndexReaderfor which to load the new cache values- Throws:
IOException- in case an error occurs reading the cache values from the index
-
collect
Description copied from interface:FieldLoadingStrategyThe collector wants to pick a specific element from the cache. Only at this point we convert primitives into an object if needed.- Specified by:
collectin interfaceFieldLoadingStrategy- Parameters:
relativeDocId- the doc id relative to the current reader- Returns:
- the cached field value for the document with the relative id
relativeDocId.
-