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