java.io.Closeable
, java.lang.AutoCloseable
, IndexComponent
public class IndexFieldDataService extends AbstractIndexComponent implements java.io.Closeable
Modifier and Type | Field | 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 | Description |
---|---|
IndexFieldDataService(IndexSettings indexSettings,
IndicesFieldDataCache indicesFieldDataCache,
CircuitBreakerService circuitBreakerService,
MapperService mapperService) |
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
|
void |
clearField(java.lang.String fieldName) |
|
void |
close() |
|
<IFD extends IndexFieldData<?>> |
getForField(MappedFieldType fieldType) |
|
<IFD extends IndexFieldData<?>> |
getForField(MappedFieldType fieldType,
java.lang.String fullyQualifiedIndexName) |
|
void |
setListener(IndexFieldDataCache.Listener listener) |
Sets a
IndexFieldDataCache.Listener passed to each IndexFieldData
creation to capture onCache and onRemoval events. |
getIndexSettings, index
public 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 <IFD extends IndexFieldData<?>> IFD getForField(MappedFieldType fieldType, java.lang.String fullyQualifiedIndexName)
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.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException