public class IndexFieldDataService extends AbstractIndexComponent implements java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELDDATA_CACHE_KEY |
static java.lang.String |
FIELDDATA_CACHE_VALUE_NODE |
static Setting<java.lang.String> |
INDEX_FIELDDATA_CACHE_KEY |
deprecationLogger, indexSettings, logger| Constructor and Description |
|---|
IndexFieldDataService(IndexSettings indexSettings,
IndicesFieldDataCache indicesFieldDataCache,
CircuitBreakerService circuitBreakerService,
MapperService mapperService) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clearField(java.lang.String fieldName) |
void |
close() |
<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. |
getIndexSettings, indexpublic static final java.lang.String FIELDDATA_CACHE_VALUE_NODE
public static final java.lang.String FIELDDATA_CACHE_KEY
public static final Setting<java.lang.String> INDEX_FIELDDATA_CACHE_KEY
public IndexFieldDataService(IndexSettings indexSettings, IndicesFieldDataCache indicesFieldDataCache, CircuitBreakerService circuitBreakerService, MapperService mapperService)
public void clear()
public void clearField(java.lang.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.java.lang.IllegalStateException - if the listener is set more than oncepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException