org.hibernate.search.query.fieldcache.impl
public interface FieldLoadingStrategy
FieldCacheCollector
,
so that we can reuse different loading strategies in different kinds
of Collectors.BigArrayFieldCacheCollectorImpl
,
MapFieldCacheCollectorImpl
Modifier and Type | Method and Description |
---|---|
Object |
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.
|
void loadNewCacheValues(org.apache.lucene.index.IndexReader reader) throws IOException
reader
- the IndexReader
for which to load the new cache valuesIOException
- in case an error occurs reading the cache values from the indexObject collect(int relativeDocId)
relativeDocId
- the doc id relative to the current readerrelativeDocId
.Copyright © 2006–2015 Hibernate. All rights reserved.