public class IndexFieldDataService extends AbstractIndexComponent
Modifier and Type | Field and Description |
---|---|
static String |
FIELDDATA_CACHE_KEY |
static String |
FIELDDATA_CACHE_VALUE_NODE |
deprecationLogger, index, indexSettings, logger
Constructor and Description |
---|
IndexFieldDataService(Index index,
IndexSettingsService indexSettingsService,
IndicesFieldDataCache indicesFieldDataCache,
CircuitBreakerService circuitBreakerService,
MapperService mapperService) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clearField(String fieldName) |
<IFD extends IndexFieldData<?>> |
getForField(MappedFieldType fieldType) |
void |
setListener(IndexFieldDataCache.Listener listener)
Sets a
IndexFieldDataCache.Listener passed to each IndexFieldData
creation to capture onCache and onRemoval events. |
index, indexSettings
public static final String FIELDDATA_CACHE_KEY
public static final String FIELDDATA_CACHE_VALUE_NODE
@Inject public IndexFieldDataService(Index index, IndexSettingsService indexSettingsService, IndicesFieldDataCache indicesFieldDataCache, CircuitBreakerService circuitBreakerService, MapperService mapperService)
public void clear()
public void clearField(String fieldName)
public <IFD extends IndexFieldData<?>> IFD getForField(MappedFieldType fieldType)
public void setListener(IndexFieldDataCache.Listener listener)
IndexFieldDataCache.Listener
passed to each IndexFieldData
creation to capture onCache and onRemoval events. Setting a listener on this method will override any previously
set listeners.IllegalStateException
- if the listener is set more than onceCopyright © 2009–2017. All rights reserved.