org.hibernate.search.query.fieldcache.impl
public final class DoubleFieldLoadingStrategy extends Object implements FieldLoadingStrategy
FieldLoadingStrategy
Constructor and Description |
---|
DoubleFieldLoadingStrategy(String fieldName) |
Modifier and Type | Method and Description |
---|---|
Double |
collect(int relativeDocId)
The collector wants to pick a specific element from the cache.
|
void |
loadNewCacheValues(org.apache.lucene.index.IndexReader reader)
A new IndexReader is opened - implementations usually need this to
load the next array of cached data.
|
public DoubleFieldLoadingStrategy(String fieldName)
public void loadNewCacheValues(org.apache.lucene.index.IndexReader reader) throws IOException
FieldLoadingStrategy
loadNewCacheValues
in interface FieldLoadingStrategy
reader
- the IndexReader
for which to load the new cache valuesIOException
- in case an error occurs reading the cache values from the indexpublic Double collect(int relativeDocId)
FieldLoadingStrategy
collect
in interface FieldLoadingStrategy
relativeDocId
- the doc id relative to the current readerrelativeDocId
.Copyright © 2006–2015 Hibernate. All rights reserved.