Class ShardFieldData
- java.lang.Object
-
- org.elasticsearch.index.fielddata.ShardFieldData
-
- All Implemented Interfaces:
IndexFieldDataCache.Listener
public class ShardFieldData extends java.lang.Object implements IndexFieldDataCache.Listener
-
-
Constructor Summary
Constructors Constructor Description ShardFieldData()
-
Method Summary
Modifier and Type Method Description voidonCache(ShardId shardId, java.lang.String fieldName, org.apache.lucene.util.Accountable ramUsage)Called after the fielddata is loaded during the cache phasevoidonRemoval(ShardId shardId, java.lang.String fieldName, boolean wasEvicted, long sizeInBytes)Called after the fielddata is unloadedFieldDataStatsstats(java.lang.String... fields)
-
-
-
Method Detail
-
stats
public FieldDataStats stats(java.lang.String... fields)
-
onCache
public void onCache(ShardId shardId, java.lang.String fieldName, org.apache.lucene.util.Accountable ramUsage)
Description copied from interface:IndexFieldDataCache.ListenerCalled after the fielddata is loaded during the cache phase- Specified by:
onCachein interfaceIndexFieldDataCache.Listener
-
onRemoval
public void onRemoval(ShardId shardId, java.lang.String fieldName, boolean wasEvicted, long sizeInBytes)
Description copied from interface:IndexFieldDataCache.ListenerCalled after the fielddata is unloaded- Specified by:
onRemovalin interfaceIndexFieldDataCache.Listener
-
-