Class IndexFieldDataService
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.fielddata.IndexFieldDataService
- All Implemented Interfaces:
,
,
IndexComponent
-
Field Summary
Modifier and TypeFieldDescriptionstatic
static
static >
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger
-
Constructor Summary
ConstructorDescriptionIndexFieldDataService(IndexSettings indexSettings, IndicesFieldDataCache indicesFieldDataCache, CircuitBreakerService circuitBreakerService, MapperService mapperService)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
fieldName)
void
close()
<IFD extends IndexFieldData<?>>
IFDgetForField(MappedFieldType fieldType, fullyQualifiedIndexName, <SearchLookup> searchLookup)
Returns fielddata for the provided field type, given the provided fully qualified index name, while also making aSearchLookup
supplier available that is required for runtime fields.void
setListener(IndexFieldDataCache.Listener listener)
Sets aIndexFieldDataCache.Listener
passed to eachIndexFieldData
creation to capture onCache and onRemoval events.Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, index
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
FIELDDATA_CACHE_VALUE_NODE
public static final FIELDDATA_CACHE_VALUE_NODE- See Also:
- Constant Field Values
-
FIELDDATA_CACHE_KEY
public static final FIELDDATA_CACHE_KEY- See Also:
- Constant Field Values
-
INDEX_FIELDDATA_CACHE_KEY
public static final > INDEX_FIELDDATA_CACHE_KEY
-
-
Constructor Details
-
IndexFieldDataService
public IndexFieldDataService(IndexSettings indexSettings, IndicesFieldDataCache indicesFieldDataCache, CircuitBreakerService circuitBreakerService, MapperService mapperService)
-
-
Method Details
-
clear
public void clear() -
clearField
public void clearField( fieldName) -
getForField
public <IFD extends IndexFieldData<?>> IFD getForField(MappedFieldType fieldType, fullyQualifiedIndexName, <SearchLookup> searchLookup)Returns fielddata for the provided field type, given the provided fully qualified index name, while also making aSearchLookup
supplier available that is required for runtime fields. -
setListener
Sets aIndexFieldDataCache.Listener
passed to eachIndexFieldData
creation to capture onCache and onRemoval events. Setting a listener on this method will override any previously set listeners.- Throws:
- if the listener is set more than once
-
close
public void close() throws- Specified by:
in interface
- Specified by:
in interface
- Throws:
-