org.hibernate.search.query.fieldcache.impl
public final class FloatFieldLoadingStrategy extends Object implements FieldLoadingStrategy
FieldLoadingStrategy| Constructor and Description |
|---|
FloatFieldLoadingStrategy(String fieldName) |
| Modifier and Type | Method and Description |
|---|---|
Float |
collect(int relativeDocId)
The collector wants to pick a specific element from the cache.
|
void |
loadNewCacheValues(IndexReader reader)
A new IndexReader is opened - implementations usually need this to
load the next array of cached data.
|
public FloatFieldLoadingStrategy(String fieldName)
public void loadNewCacheValues(IndexReader reader) throws IOException
FieldLoadingStrategyloadNewCacheValues in interface FieldLoadingStrategyreader - the IndexReader for which to load the new cache valuesIOException - in case an error occurs reading the cache values from the indexpublic Float collect(int relativeDocId)
FieldLoadingStrategycollect in interface FieldLoadingStrategyrelativeDocId - the doc id relative to the current readerrelativeDocId.Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved